podcastindex-php

A PHP wrapper for the PodcastIndex API.

Installation

Install the library using Composer. Please read the Composer Documentation if you are unfamiliar with Composer or dependency managers in general.

"require": {
    "podcastindex/podcastindex-php": "~1.0"
}

Example usage

See the PodcastIndex Documention for all available methods.

$client = new PodcastIndex\Client([
    'app' => 'AppName',
    'key' => $key,
    'secret' => $secret
]);
$searchResult = $client->search->byTerm('batman university')->json();

$podcasts = $client->podcasts->byFeedUrl('https://feeds.theincomparable.com/batmanuniversity')->json();

If an endpoint is not (yet) available in this library, you can always manually call $client->get('/full/endpoint/url/', $query) for a manual interface.