echonest / echonest
A PHP library for abstracting the Echonest API
dev-master
2014-09-07 19:54 UTC
Requires
- php: >=5.3.3
- zendframework/zend-http: 2.*,!=2.0.6
- zendframework/zend-i18n: 2.*,!=2.0.6
- zendframework/zend-json: 2.*,!=2.0.6
This package is auto-updated.
Last update: 2024-04-11 13:19:13 UTC
README
This is a library to abstract the Echonest API
Installation
-
edit
composer.json
file with following contents:"require": { "echonest/echonest": "dev-master" }
-
install composer via
curl -s http://getcomposer.org/installer | php
(on windows, download http://getcomposer.org/installer and execute it with PHP) -
run
php composer.phar install
Use
Configure the service
use Echonest\Service\Echonest; Echonest::configure($apiKey);
Run a query
$response = Echonest::query('artist', 'biographies', array( 'id' => 'ARH6W4X1187B99274F', 'results' => '1', 'start' => '0', 'license' => 'cc-by-sa' ));