nucleos / setlistfm
Setlist.fm webservice client for php.
Fund package maintenance!
core23
Opencollective
Ko-Fi
Other
Installs: 21 687
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 2
Requires
- php: ^8.1
- ext-json: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0 || ^2.0
- psr/log: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.0.1
- nyholm/psr7: ^1.0
- symfony/http-client: ^6.4 || ^7.0
Suggests
- symfony/http-client: Symfony HTTP client implementation
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 nucleos/setlistfm
# To define a default http client and message factory
composer require symfony/http-client nyholm/psr7
Usage
General usage
// Create connection use Nucleos\SetlistFm\Builder\ArtistSearchBuilder; use Nucleos\SetlistFm\Connection\PsrClientConnection; use Nucleos\SetlistFm\Service\ArtistService; $connection = new PsrClientConnection($httpClient, $requestFactory); $artistApi = new ArtistService($connection); $artists = $artistApi->search(ArtistSearchBuilder::create() ->withArtistName('Slipknot') );
License
This library is under the MIT license.