core23 / setlistfm-api
2.0.0
2020-05-22 07:37 UTC
Requires
- php: ^7.2
- ext-json: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
- psr/log: ^1.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.3
- ergebnis/composer-normalize: ^2.0.1
- nyholm/psr7: ^1.0
- symfony/http-client: ^4.4 || ^5.0
Suggests
- symfony/http-client: Symfony HTTP client implementation
This package is auto-updated.
Last update: 2020-06-28 11:59:27 UTC
README
此库提供了在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许可证。