Getting Started

Download

Genius-PHP has a easy way to quickly get started, just get the latest version from GitHub. If you want to contribute to the project feel free to create pull requests - every one of them will be checked.

Requirements

  • PHP 5.3 or later
  • cURL lib 7.10.5 or later

Usage

It's super simple. Just include autoload.php in your PHP file - now you can use every class from src directory!

Example usage:

require_once('autoload.php');

$geniusphp = new \Genius\Genius('access_token');

// let's search for the most popular song on Genius for Kendrick Lamar
$search = $geniusphp->search->get('Kendrick Lamar')->response->hits[0]->result->id

// and get everything about that song
$song = $geniusphp->songs->get( $search );
                        

Classes and methods

Account

Annotations

Artists

Referents

Search

Songs

Webpages