dev-master
9999999-dev https://github.com/nass600/LyricsBundleSymfony2 bundle for retrieving album track lyrics via REST API's
GNU
The Requires
- php >=5.3.2
- symfony/framework-bundle >=2.0.0
bundle symfony music lyrics
Symfony2 bundle for retrieving album track lyrics via REST API's
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)
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(), ); }
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)
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");
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');
This bundle is under de GNU license. See the complete license in:, (*11)
LICENSE
The bundle gets the information of the following free web services:, (*12)
LyrDB (http://www.lyrdb.com)
Symfony2 bundle for retrieving album track lyrics via REST API's
GNU
bundle symfony music lyrics