echonest/echonest

A PHP library for abstracting the Echonest API

dev-master 2014-09-07 19:54 UTC

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

  1. edit composer.json file with following contents:

    "require": {
       "echonest/echonest": "dev-master"
    }
  2. install composer via curl -s http://getcomposer.org/installer | php (on windows, download http://getcomposer.org/installer and execute it with PHP)

  3. 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'
));