PHPackages                             giantbomb/giantbomb-php-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. giantbomb/giantbomb-php-api

ActiveLibrary

giantbomb/giantbomb-php-api
===========================

A PHP library for interacting with the GiantBomb API

1.3.1(12y ago)143.1k4[2 issues](https://github.com/giantbomb/giantbomb-php-api/issues)Apache v2PHPPHP &gt;=5.3.3

Since Nov 26Pushed 10y ago2 watchersCompare

[ Source](https://github.com/giantbomb/giantbomb-php-api)[ Packagist](https://packagist.org/packages/giantbomb/giantbomb-php-api)[ Docs](http://www.giantbomb.com/api/)[ RSS](/packages/giantbomb-giantbomb-php-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (10)Used By (0)

GiantBomb.com PHP Api Wrapper
=============================

[](#giantbombcom-php-api-wrapper)

#### Requirements

[](#requirements)

- API Key from [GiantBomb](http://api.giantbomb.com/)
- [Composer](http://www.getcomposer.org/)

#### Installation

[](#installation)

In your project root, run the following:

```
composer require giantbomb/giantbomb-php-api dev-master
```

This will create a `vendor` directory (if you dont already have one), and set up the autoloading classmap.

#### Usage

[](#usage)

Once everything is installed, you should be able to load the composer autoloader in your code, and go from there!

Here is a very simple example:

```
require __DIR__ . '/vendor/autoload.php';

use \GiantBomb\Client\GiantBombClient;

$config = array(
	'apiKey' => 'your-api-key',
	'cache'  => array(
		'type'    => 'redis', // Or memcached
		'servers' => array( array( 'host' => 'localhost', 'port' => 6397, 'timeout' => 0 ) ), // weight is also a parameter for memcached
		'persistent' => true
	)
);
/**
Memcached also has the "options" parameter for specifiying Memcached options (via constants)
Redis also has the "password" parameter for auth, and "dbindex" for specifying your db
*/

$client = GiantBombClient::factory( $config );

$requestArgs = array(
	'limit'  => 100, // Max of 100,
	'offset' => 0,   // Default is 0
//	'field_list' => 'name', // Default is not set
//	'sort'	 => 'name|asc', // Default is not set
//	'filter' => 'name:portal 2', // Default is not set
);

// Depending on the query, there are different options afailable. Check out the [service description][3] for more information.

$response = $client->getGames( $requestArgs );

if( $response->getStatusCode() === 1 ) {
    printf( "There are %d total results. Currently showing %d, starting at %d.\n", $response->getNumberOfTotalResults(), $response->getNumberOfPageResults(), $response->getOffset() );
    $games = $response->getResults();
    // HUGE dump. Careful
    //var_dump( $games );

    // Get more info on a single game
    $game = $games->get( 0 )->getDetail()->getResults();

    // All functions are magic functions based on the camel case of the key from the API result. This goes for anything returned from the API
    printf( "Game: %s", $game->getName() );
} else {
    printf( "There was an error: %s", $response->getError() );
}
```

If you have any questions, feel free to make an issue, and I'll help you out!

#### Contribution

[](#contribution)

If you want to help out, just make a pull request!

[![Bitdeli Badge](https://camo.githubusercontent.com/7565703efc5820f03df42fc88b3edf55c6b888a1a82067ba51b913896981cedb/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6769616e74626f6d622f6769616e74626f6d622d7068702d6170692f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

9

Last Release

4515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cf67675d97e63f6ff9e7fed55f35502b24cd834081806a6731229117c0630bb?d=identicon)[aequasi](/maintainers/aequasi)

---

Top Contributors

[![cryptiklemur](https://avatars.githubusercontent.com/u/896295?v=4)](https://github.com/cryptiklemur "cryptiklemur (12 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

giantbomb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/giantbomb-giantbomb-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/giantbomb-giantbomb-php-api/health.svg)](https://phpackages.com/packages/giantbomb-giantbomb-php-api)
```

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao-community-alliance/dc-general

Universal data container for Contao

1578.3k86](/packages/contao-community-alliance-dc-general)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)[anime-db/anime-db

The application for making home collection anime

252.1k2](/packages/anime-db-anime-db)[mpscholten/github-api

192.8k](/packages/mpscholten-github-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
