core23/setlistfm-api

此包已被废弃,不再维护。作者建议使用 nucleos/setlistfm 包。

php的Setlist.fm Web服务客户端。

2.0.0 2020-05-22 07:37 UTC

This package is auto-updated.

Last update: 2020-06-28 11:59:27 UTC


README

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Continuous Integration Code Coverage

此库提供了在PHP中使用Setlist.fm API的封装,并为symfony提供桥梁。

安装

打开命令控制台,进入您的项目目录,然后执行以下命令以下载此库的最新稳定版本

composer require core23/setlistfm-api
# To define a default http client and message factory
composer require symfony/http-client nyholm/psr7

使用方法

通用用法

// Create connection
$connection = new \Core23\SetlistFm\Connection\PsrClientConnection($httpClient, $requestFactory);

$artistApi = new \Core23\SetlistFm\Service\ArtistService($connection);
$artists = $artistApi->search(\Core23\SetlistFm\Builder\ArtistSearchBuilder::create()
    ->withArtistName('Slipknot')
);

许可证

此库采用MIT许可证