PHP code example of nellyt / igdb-api-wrapper

1. Go to this page and download the library: Download nellyt/igdb-api-wrapper 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/ */

    

nellyt / igdb-api-wrapper example snippets




$config = new \Igdb\Config($clientId, $accessToken);
$client = new \Igdb\ApiClient($config);

$response = $client->games()->fetch('fields name, summary; where id = 25;');

$response->getResponse()->getStatusCode();

$response->getData();