Download the PHP package calliostro/discogs-bundle without Composer
On this page you can find all versions of the php package calliostro/discogs-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download calliostro/discogs-bundle
More information about calliostro/discogs-bundle
Files in calliostro/discogs-bundle
Package discogs-bundle
Short Description Bundle around the Discogs API client for Symfony 5 or Symfony 6
License MIT
Homepage https://github.com/calliostro/CalliostroDiscogsBundle
Informations about the package discogs-bundle
Discogs Bundle
This bundle provides a simple integration of the calliostro/php-discogs-api into Symfony 5 or 6. You can find more information about this library on its dedicated page at https://www.discogs.com/developers.
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:
Usage
This bundle provides a single service for communication with Discogs API, which you can autowire by using the Discogs
type-hint:
Configuration
For configuration create a new config/packages/calliostro_discogs.yaml
file. The default values are:
Client Credentials
To access protected endpoints and get a higher rate limit, you must enable OAuth. For this, you must register for at
least consumer_key
and consumer_secret
at https://www.discogs.com/de/applications/edit.
User Authorization
To access current user information, you also need a user token. Discogs supports only OAuth 1.0a for user authorization.
You should use a third-party library for this. This bundle provides support for
hwi/HWIOAuthBundle. The token_provider
does not need to be changed in
configuration file if you use the HWIOAuthBundle.
Documentation
See calliostro/php-discogs-api for documentation of the Discogs Client.
Further documentation can be found at the Discogs API v2.0 Documentation.
You find an example in calliostro/discogs-bundle-demo.
Contributing
Implemented a missing feature? You can request it. And creating a pull request is an even better way to get things done.
See also
For the integration of Discogs into Symfony 2, see ricbra/RicbraDiscogsBundle, which this is based on.
All versions of discogs-bundle with dependencies
symfony/config Version ^5.0 || ^6.0
symfony/dependency-injection Version ^5.0 || ^6.0
symfony/http-kernel Version ^5.0 || ^6.0
symfony/security-bundle Version ^5.0 || ^6.0
php Version ^7.3 || ^8.0