2017 © Pedro PelĂĄez
 

symfony-bundle lyrics-bundle

Symfony2 bundle for retrieving album track lyrics via REST API's

image

nass600/lyrics-bundle

Symfony2 bundle for retrieving album track lyrics via REST API's

  • Monday, July 23, 2012
  • by nass600
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

LyricsBundle

The LyricsBundle offers access to several web services that offer music track lyrics data abstracting their API's through a common interface. Allows you to search for lyrics and get and manipulate them., (*1)

Installation

Add LyricsBundle to your vendor/bundles/ directory., (*2)

Add the following lines in your deps file:, (*3)

[LyricsBundle]
  git =https://github.com/nass600/LyricsBundle.git
  target=/bundles/nass600/LyricsBundle
  version=master

Run the vendors script:, (*4)

./bin/vendors install

Add the nass600 namespace to your app/autoload.php:, (*5)

// app/autoload.php
$loader->registerNamespaces(array(
    // your other namespaces
    'nass600' => __DIR__.'/../vendor/bundles',
);

Add PachubeBundle to your app/AppKernel.php:, (*6)

// app/AppKernel.php

public function registerBundles()
{
    return array(
        // ...
        new Nass600\LyricsBundle\nass600LyricsBundle(),
    );
}

Configuration

Add the lyrics class adapter to your app/config.yml:, (*7)

nass600_lyrics:
    provider: Nass600\LyricsBundle\Adapter\LyrDBAdapter

By default is set to use the LyrDB API for offering the best API related to lyrics services so you don't have to put this configuration entry unless you want to use other API's, (*8)

Usage

SearchLyrics

Just access the service and search for a certain track and put an output format, (*9)

$this->get('nass600.lyrics.manager')->searchLyrics("MICHAEL JACKSON Don't stop til get enough", "json");

GetLyrics

Using the service, get the lyrics via passing the corresponding track id according to the web service in use and an output format, (*10)

$this->get('nass600.lyrics.manager')->getLyrics("170987", 'text');

License

This bundle is under de GNU license. See the complete license in:, (*11)

LICENSE

Authors

  • Ignacio VelĂĄzquez GĂłmez

Credits

The bundle gets the information of the following free web services:, (*12)

LyrDB (http://www.lyrdb.com)

TODO

  • Unit testing

The Versions

23/07 2012

dev-master

9999999-dev https://github.com/nass600/LyricsBundle

Symfony2 bundle for retrieving album track lyrics via REST API's

  Sources   Download

GNU

The Requires

 

bundle symfony music lyrics