2017 © Pedro Peláez
 

library php-giantbomb

A PHP library that acts as a wrapper for the GiantBomb API.

image

dborsatto/php-giantbomb

A PHP library that acts as a wrapper for the GiantBomb API.

  • Saturday, December 23, 2017
  • by dborsatto
  • Repository
  • 1 Watchers
  • 7 Stars
  • 10,261 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 13 Versions
  • 19 % Grown

The README.md

php-giantbomb

Packagist Packagist Packagist, (*1)

This is a library that acts as a wrapper for GiantBomb's API., (*2)

Install

Via Composer, (*3)

``` bash $ composer require dborsatto/php-giantbomb, (*4)


## Usage ``` php $apiKey = 'YouApiKey'; // Create a Config object and pass it to the Client $config = new DBorsatto\GiantBomb\Configuration($apiKey); $client = new DBorsatto\GiantBomb\Client($config); // OPTIONAL: use a PSR-16 simple cache pool $cache = new Cache\Adapter\PHPArray\ArrayCachePool(); $client = new DBorsatto\GiantBomb\Client($config, $cache); // Standard query creation process $query = DBorsatto\GiantBomb\Query::create() ->addFilterBy('name', 'Uncharted') ->sortBy('original_release_date', 'asc') ->setFieldList(['id', 'name', 'deck']) ->setParameter('limit', '100') ->setParameter('offset', '0'); $games = $client->find('Game', $query); echo count($games)." Game objects loaded\n"; // These two options are equivalent $game = $client->findOne('Game', Query::createForResourceId('3030-22420')); // The findWithResourceID method is just a shortcut $game = $client->findWithResourceID('Game', '3030-22420'); echo $game->get('name')." object loaded\n"; // These two options are equivalent $query = DBorsatto\GiantBomb\Query::create() ->setParameter('query', 'Uncharted') ->setParameter('resources', 'game,franchise'); $results = $client->find('Search', $query); // The search method is just a shortcut $results = $client->search('Uncharted', 'game,franchise'); echo count($results)." Search objects loaded\n";

For the full option list visit GiantBomb's API doc., (*5)

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

23/12 2017

dev-feature/v2

dev-feature/v2

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/05 2017

dev-master

9999999-dev

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/05 2017

dev-analysis-zErAeA

dev-analysis-zErAeA

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

18/05 2017

v1.0.2

1.0.2.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/05 2017

v1.0.1

1.0.1.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

04/02 2017

v1.0.0

1.0.0.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

12/12 2015

0.6.0

0.6.0.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

17/08 2015

0.2.0

0.2.0.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/08 2015

0.1.0

0.1.0.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/08 2015

0.5.0

0.5.0.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/08 2015

0.4.0

0.4.0.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/08 2015

0.3.1

0.3.1.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/08 2015

0.3.0

0.3.0.0

A PHP library that acts as a wrapper for the GiantBomb API.

  Sources   Download

MIT

The Requires

 

The Development Requires