2017 © Pedro Peláez
 

library vocadb

PHP API client for the VocaDB Public API (v1)

image

pbxg33k/vocadb

PHP API client for the VocaDB Public API (v1)

  • Wednesday, March 29, 2017
  • by PBX_g33k
  • Repository
  • 2 Watchers
  • 0 Stars
  • 239 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer quality score Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

VocaDB API PHP Client

NOTE: This is an early alpha release which is still in development!, (*2)

Installation

Simply run: composer require pbxg33k/vocadb dev-master, (*3)

or add the following line to your require in composer.json: "pbxg33k/vocadb":"dev-master", (*4)

Without composer

  1. Download this repository as a zip file.
  2. Extract to a directory in your application
  3. Add files to your project
    • Map "pbxg33k/vocadb" to this directory if your autoloader is PSR-4 compatible
    • Include autoload.php to your project if either you don't have an autoloader or your autoloader is not PSR-4 compatible

How to use

The goal of this project is an easy integration with VocaDB's public API., (*5)

Before you can do anything you must load the client, (*6)

    $client = new Pbxg33k\VocaDB\Client();

The client uses Guzzle to communicate with the API. You can pass any guzzle configuration in an array mapped to the 'guzzle' key., (*7)

Let's say for example your server is behind a proxy and cannot communicate directly with VocaDB's API. We can instruct Guzzle to use a proxy for communication by simply adding the proxy information to the constuctor., (*8)

    $guzzleConfig = [
        'request.options' => [
            'proxy' => 'tcp://localhost:80/'
        ]
    ];

    // We assign the $guzzleConfig to array('guzzle' => data) so we don't mix up the library's own config.
    $clientConfig = ['guzzle' => $guzzleConfig];

    $client = new Pbxg33k\VocaDB\Client($clientConfig);

From this point on you can communicate with the API by simply calling the client's methods., (*9)

    // Get Livetune's information
    $livetune = $client->artist->getByName('livetune');

    // $livetune is now an array with searchresults

TODO

  • Add all missing endpoints
    • PARTIALLY DONE Song
    • Entry
    • SongList
    • PARTIALLY DONE Album
    • User
    • PARTIALLY DONE Tag
    • PARTIALLY DONE Artist
    • PARTIALLY DONE ReleaseEvent
    • Discussion

The Versions

29/03 2017

dev-develop

dev-develop

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

29/03 2017

v0.1.3.3

0.1.3.3

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2016

dev-master

9999999-dev

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2016

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2016

v0.1.3.2

0.1.3.2

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2016

v0.1.3.1

0.1.3.1

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2016

dev-hotfix/scrutizinizer

dev-hotfix/scrutizinizer

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2016

v0.1.3

0.1.3.0

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

22/09 2015

v0.1.2.1

0.1.2.1

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

22/09 2015

v0.1.2

0.1.2.0

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

06/05 2015

v0.1.1

0.1.1.0

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

06/05 2015

v0.0.2

0.0.2.0

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

06/05 2015

v0.1.0

0.1.0.0

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires

05/05 2015

v0.0.1

0.0.1.0

PHP API client for the VocaDB Public API (v1)

  Sources   Download

MIT

The Requires

 

The Development Requires