This is a PHP wrapper for v4 of the IGDB API
You can install this package via composer using:
composer require nellyt/igdb-api-wrapper
require ('vendor/autoload.php');
$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();
There are resources for each API endpoint. Here is the list of available resources
- AgeRating
- AgeRatingContentDescription
- AlternativeName
- Artwork
- Character
- CharacterMugShot
- Collection
- Company
- CompanyLogo
- CompanyWebsite
- Cover
- ExternalGame
- Franchise
- Game
- GameEngine
- GameEngineLogo
- GameMode
- GameVersion
- GameVersionFeature
- GameVersionFeatureValue
- GameVideo
- Genre
- InvolvedCompany
- Keyword
- MultiplayerMode
- Platform
- PlatformFamily
- PlatformLogo
- PlatformVersion
- PlatformVersionCompany
- PlatformVersionReleaseDate
- PlatformWebsite
- PlayerPerspective
- ReleaseDate
- Screenshot
- Search
- Theme
- Website