Download the PHP package ricbra/discogs-bundle without Composer
On this page you can find all versions of the php package ricbra/discogs-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ricbra/discogs-bundle
More information about ricbra/discogs-bundle
Files in ricbra/discogs-bundle
Package discogs-bundle
Short Description Bundle around the Discogs API client
License MIT
Homepage https://github.com/ricbra/RicbraDiscogsBundle
Informations about the package discogs-bundle
RicbraDiscogsBundle
This bundle provides a simple integration of the "Discogs library" into Symfony2. You can find more information about this library on its dedicated page at http://www.discogs.com/developers/index.html.
`
The bundle provides a new discogs
service that returns an instance of
Discogs\Service
.
Installation
$ composer require ricbra/discogs-bundle ~1.0.0
Enable the bundle
Enable the bundle in the kernel:
Configuration
To enable or disable the throttle:
ricbra_discogs:
throttle:
enabled: false # or true
To enable OAuth you've to also use some third party library for connecting and authorization. This bundle provides
support for HWIOAuthBundle. The token_provider_id
is the service id which provider the token and token
secret. You get this after authenticating at Discogs.
ricbra_discogs:
oauth:
enabled: true
consumer_key: _get_this_from_discogs_
consumer_secret: _get_this_from_discogs_
token_provider_id: ricbra_discogs.hwi_oauth_token_provider
Basic Usage
The only thing to do is to request the discogs
service from the container to get
an instance of Discogs\Service
and start issuing API calls: