This library provides a wrapper for using the Setlist.fm API inside PHP and a bridge for symfony.
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
// 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')
);
This library is under the MIT license.