podcastindex/podcastindex-php

此包的最新版本(1.0.3)没有可用的许可证信息。

PodcastIndex API 的 PHP 封装器。

1.0.3 2020-09-11 08:06 UTC

This package is auto-updated.

Last update: 2024-09-11 17:02:55 UTC


README

PodcastIndex API 的 PHP 封装器。

安装

使用 Composer 安装库。如果您不熟悉 Composer 或一般的依赖管理器,请阅读Composer 文档

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

示例用法

有关所有可用方法的详细信息,请参阅PodcastIndex 文档

$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();

如果此库中尚未提供端点,您始终可以手动调用 $client->get('/full/endpoint/url/', $query) 以获得手动接口。