项目作者: nucleos

项目描述 :
🔌 Setlist.fm webservice client for php.
高级语言: PHP
项目地址: git://github.com/nucleos/setlistfm.git
创建时间: 2017-03-24T09:28:57Z
项目社区:https://github.com/nucleos/setlistfm

开源协议:MIT License

下载


Setlist.fm PHP library

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:

  1. composer require nucleos/setlistfm
  2. # To define a default http client and message factory
  3. composer require symfony/http-client nyholm/psr7

Usage

General usage

  1. // Create connection
  2. use Nucleos\SetlistFm\Builder\ArtistSearchBuilder;
  3. use Nucleos\SetlistFm\Connection\PsrClientConnection;
  4. use Nucleos\SetlistFm\Service\ArtistService;
  5. $connection = new PsrClientConnection($httpClient, $requestFactory);
  6. $artistApi = new ArtistService($connection);
  7. $artists = $artistApi->search(ArtistSearchBuilder::create()
  8. ->withArtistName('Slipknot')
  9. );

License

This library is under the MIT license.