nucleos / lastfm-bundle
This bundle provides services for using the last.fm API inside the symfony.
Fund package maintenance!
core23
Opencollective
Ko-Fi
Other
Installs: 99
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.2
- core23/lastfm-api: ^0.5 || ^0.6
- php-http/client-implementation: ^1.0
- php-http/httplug-bundle: ^1.1
- symfony/config: ^3.4 || ^4.0
- symfony/dependency-injection: ^3.4 || ^4.0
- symfony/event-dispatcher: ^3.4 || ^4.0
- symfony/expression-language: ^3.4 || ^4.0
- symfony/framework-bundle: ^3.4 || ^4.0
- symfony/http-foundation: ^3.4 || ^4.0
- symfony/http-kernel: ^3.4 || ^4.0
- symfony/routing: ^3.4 || ^4.0
- twig/twig: ^2.4
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.2
- php-http/message-factory: ^1.0
- php-http/mock-client: ^1.0
- sllh/composer-lint: ^1.0
Suggests
- cache/adapter-bundle: Symfony cache adapter
- php-http/buzz-adapter: Buzz HTTP client implementation
- php-http/guzzle6-adapter: Guzzle HTTP client implementation
This package is auto-updated.
Last update: 2021-02-26 03:12:34 UTC
README
This bundle provides a wrapper for using the Last.fm API inside symfony.
Installation
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 nucleos_lastfm: api: app_id: "%lastfm_api.id%" shared_secret: "%lastfm_api.secret%" http: client: 'httplug.client' message_factory: 'nyholm.psr7.psr17_factory'
License
This bundle is under the MIT license.