Download the PHP package calliostro/last-fm-client-bundle without Composer
On this page you can find all versions of the php package calliostro/last-fm-client-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download calliostro/last-fm-client-bundle
More information about calliostro/last-fm-client-bundle
Files in calliostro/last-fm-client-bundle
Package last-fm-client-bundle
Short Description Last.fm API client for Symfony 5 or Symfony 6
License MIT
Informations about the package last-fm-client-bundle
Last.fm Client Bundle
This bundle provides a simple integration of snapshotpl/LastFmClient into Symfony 5 or Symfony 6.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Configuration
First, you must register your application at https://www.last.fm/api/account/create to obtain the
api_key
and secret
.
For configuration create a new config/packages/calliostro_last_fm_client.yaml
file. Here is an example:
Usage
This bundle provides multiple service for communication with Last.fm, which you can autowire by using the corresponding type-hint.
Client Credentials
This is the simpler option if no user-related endpoints are required.
Authorization Code
If you want to trade on behalf of a Last.fm user (e.g. for scrobbling), you must have a session token. If you want to
use the API only for a specific user, you can set the session
value in the configuration. These session tokens do not
expire.
You can also request a session token from Last.fm for the current user. First, you need an authorization token. Here is an example:
Documentation
The services are provided by snapshotpl/LastFmClient. A documentation can be found there.
For more documentation, see the Last.fm API documentation.
Contributing
Implemented a missing feature? You can request it. And creating a pull request is an even better way to get things done.
All versions of last-fm-client-bundle with dependencies
snapshotpl/last-fm-client Version ^1.0
symfony/config Version ^5.0 || ^6.0
symfony/dependency-injection Version ^5.0 || ^6.0
symfony/http-kernel Version ^5.0 || ^6.0