Download the PHP package barryvanveen/lastfm without Composer
On this page you can find all versions of the php package barryvanveen/lastfm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download barryvanveen/lastfm
More information about barryvanveen/lastfm
Files in barryvanveen/lastfm
Package lastfm
Short Description Last.fm API client for PHP 7+
License MIT
Homepage https://github.com/barryvanveen/lastfm
Informations about the package lastfm
Last.fm API client for PHP 8
- API keys
- Installation
- Laravel installation
- Usage
- Basic example
- Laravel example
- All available methods
- Filtering results
- Valid time periods
- Official API docs
API keys
You can create a last.fm API account at http://www.last.fm/api/account/create.
Installation
Via Composer
Laravel installation
Add a LASTFM_API_KEY variable to your .env configuration. You could also publish the default configuration and alter it yourself:
Update config/app.php
by adding the LastfmServiceProvider:
If you are using Laravel 5.5 or higher, the service provider will be detected automagically by Laravel's package discovery.
Tested against Laravel 5.* but probably works in most versions because it is so simple. Please create an issue if it doesn't work for you.
Usage
Basic example
Laravel example
All available methods
Filtering results
Valid time periods
Official API docs
Read the official API documentation at http://www.last.fm/api.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Copy phpunit.xml.dist
to phpunit.xml
. Then run the tests using:
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Barry van Veen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of lastfm with dependencies
fig/http-message-util Version ^1.1
guzzlehttp/guzzle Version ^6.5.6 || ^7.4.3