2017 © Pedro Peláez
 

symfony-bundle discogs-bundle

Bundle around the Discogs API client

image

ricbra/discogs-bundle

Bundle around the Discogs API client

  • Sunday, December 6, 2015
  • by ricbra
  • Repository
  • 3 Watchers
  • 11 Stars
  • 388 Installations
  • PHP
  • 0 Dependents
  • 2 Suggesters
  • 5 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

RicbraDiscogsBundle

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

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., (*2)

``` php <?php, (*3)

$discogs = $this->container->get('discogs'); ````, (*4)

The bundle provides a new discogs service that returns an instance of Discogs\Service., (*5)

Installation

$ composer require ricbra/discogs-bundle ~1.0.0

Enable the bundle

Enable the bundle in the kernel:, (*6)

``` php <?php // app/AppKernel.php, (*7)

public function registerBundles() { $bundles = array( // ..., (*8)

    new Ricbra\Bundle\DiscogsBundle\RicbraDiscogsBundle(),
);

}, (*9)


### 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 <code>token_provider_id</code> 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: ``` php <?php $discogs = $this->container->get('discogs'); $artist = $discogs->getArtist([ 'id' => 120 ]); echo $artist['name'];

The Versions

06/12 2015

dev-master

9999999-dev https://github.com/ricbra/RicbraDiscogsBundle

Bundle around the Discogs API client

  Sources   Download

MIT

The Requires

 

by Richard van den Brand

api discogs

06/12 2015

1.0.1

1.0.1.0 https://github.com/ricbra/RicbraDiscogsBundle

Bundle around the Discogs API client

  Sources   Download

MIT

The Requires

 

by Richard van den Brand

api discogs

08/08 2014

1.0.0

1.0.0.0 https://github.com/ricbra/RicbraDiscogsBundle

Bundle around the Discogs API client

  Sources   Download

MIT

The Requires

 

by Richard van den Brand

api discogs