PHP code example of core23 / setlistfm-api
1. Go to this page and download the library: Download core23/setlistfm-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
core23 / setlistfm-api example snippets
// 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')
);