dborsatto / giantbomb-bundle
A Symfony bundle built on top of the dborsatto/php-giantbomb package.
Installs: 62
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dborsatto/giantbomb-bundle
Requires
- dborsatto/php-giantbomb: ^1.0.0
README
This is a Symfony bundle built on top of the dborsatto/php-giantbomb package.
Installation
Install it with composer:
composer require dborsatto/giantbomb-bundle
Configuration
First, register the bundle in your AppKernel
// ...
new DBorsatto\GiantBombBundle\GiantBombBundle(),
// ...
Then you only need to add an api_key to you config.yml.
giantbomb:
api_key: YOUR_KEY_HERE
Use
The bundle provides a shortcut to the Client object:
// Inside a controller $client = $this->get('giantbomb.client'); $results = $client->search('Uncharted', 'game,franchise');
For all possible uses refer to the dborsatto/php-giantbomb documentation.