This library wraps lastfm's API for usage in any php framework via composer. Supported APIs:
geo.getTopArtists
artist.getTopTracks
Via Composer
# Clone this repo from github
# Have to make sure you have defined the repository for this, since this is not in packagist yet
"repositories": [
{
"type": "path",
"url": "../lastfmphpapi"
}
],
# (Add this above to your composer file first). url : based on your files location
Add composer require:
"require": {
"mazharul/lastfm" : "dev-master"
},
# Install composer dependencies
composer install
$lastfm = new mazharul\lastfm($api_key);
$lastfm->getGeoTopArtists($country);
Please see CHANGELOG for more information what has changed recently.
No tests yet :(
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.