core23 / setlistfm-api
Setlist.fm webservice client for php.
Fund package maintenance!
core23
Opencollective
Ko-Fi
Other
Installs: 1 683
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 1
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
This library provides a wrapper for using the Setlist.fm API inside PHP and a bridge for symfony.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this library:
composer require core23/setlistfm-api
# To define a default http client and message factory
composer require symfony/http-client nyholm/psr7
Usage
General usage
// 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') );
License
This library is under the MIT license.