PHP code example of amalfra / giantbomb
1. Go to this page and download the library: Download amalfra/giantbomb library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amalfra / giantbomb example snippets
use \Amalfra\GiantBomb\Client as GiantBomb;
$config = array(
'token' => 'YOUR_KEY',
);
$gb_obj = new GiantBomb($config);
$gb_obj->set_cache_provider('inmemory');
$gb_obj->set_cache_provider('redis', array('host' => 'localhost', 'port' => 6379));