core23/setlistfm-api

Setlist.fm webservice client for php.

1.0.0 2019-01-18 17:22 UTC

This package is auto-updated.

Last update: 2019-12-15 09:49:38 UTC


README

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Continuous Integration Code 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 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.