Skip to content

nucleos/setlistfm

3.3.x
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Setlist.fm PHP library

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Continuous Integration Code Coverage Type Coverage

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.