nellyt / igdb-api-wrapper
Wrapper for IGDB API v4
v1.0.0
2021-02-09 17:49 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.2
- lukasoppermann/http-status: ^3.1
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-03-10 02:52:49 UTC
README
This is a PHP wrapper for v4 of the IGDB API
Basic installation
You can install this package via composer using:
composer require nellyt/igdb-api-wrapper
Usage
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();
Resources
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