This bundle provides services for using the API with symfony.

1.2.0 2023-04-30 16:55 UTC

This package is auto-updated.

Last update: 2023-11-29 13:38:55 UTC


Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Continuous Integration Code Coverage Type Coverage

This bundle provides a wrapper for using the API inside symfony.


Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require nucleos/lastfm-bundle
# To define a default http client and message factory
composer require symfony/http-client nyholm/psr7

Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in config/bundles.php file of your project:

// config/bundles.php

return [
    // ...
    Nucleos\LastFmBundle\NucleosLastFmBundle::class => ['all' => true],

Configure the Bundle

Define the API credentials in your configuration.

# config/packages/nucleos_lastfm.yaml

        app_id:         ""
        shared_secret:  "%lastfm_api.secret%"

        client: 'httplug.client'
        message_factory: 'nyholm.psr7.psr17_factory'


This bundle is under the MIT license.