Easily find podcasts!
PHP library to find podcasts
Podcast Crawler is a library that enables the search for podcasts to get details and mp3 files through API providers.
Install podcastcrawler/podcastcrawler using Composer:
$ composer require podcastcrawler/podcastcrawler
It's required PHP >= 5.4.0 and have Tidy library installed.
Basic usage:
<?php // Require the composer auto loader require 'vendor/autoload.php'; use PodcastCrawler\PodcastCrawler; use PodcastCrawler\Provider\Itunes; $PodcastCrawler = new PodcastCrawler(new Itunes); $PodcastCrawler->get('nerdcast'); // Returns an array with search result (result count and a list with podcasts). $PodcastCrawler->limit(2)->get('dev'); // Returns an array with 2 (two) items. Result count is also included. $PodcastCrawler->find('https://jovemnerd.com.br/feed-nerdcast/'); // Returns an array with the podcast's detail and episodes with its mp3 files.
See the documentation for more.