https://github.com/nialltiernan/igdb-api-wrapper
PHP wrapper for the IGDB API v4
https://github.com/nialltiernan/igdb-api-wrapper
api-wrapper igdb php8
Last synced: 3 months ago
JSON representation
PHP wrapper for the IGDB API v4
- Host: GitHub
- URL: https://github.com/nialltiernan/igdb-api-wrapper
- Owner: nialltiernan
- Created: 2021-02-08T22:48:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-09T18:14:44.000Z (over 5 years ago)
- Last Synced: 2025-01-19T22:50:56.431Z (over 1 year ago)
- Topics: api-wrapper, igdb, php8
- Language: PHP
- Homepage: https://api-docs.igdb.com/#about
- Size: 62.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Wrapper for IGDB API v4
[](//packagist.org/packages/nellyt/igdb-api-wrapper)
[](//packagist.org/packages/nellyt/igdb-api-wrapper)
[](//packagist.org/packages/nellyt/igdb-api-wrapper)
[](//packagist.org/packages/nellyt/igdb-api-wrapper)
This is a PHP wrapper for v4 of the [IGDB API](https://api-docs.igdb.com/#about)
## Basic installation
You can install this package via composer using:
```shell
composer require nellyt/igdb-api-wrapper
```
## Usage
```php
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
1. AgeRating
2. AgeRatingContentDescription
3. AlternativeName
4. Artwork
5. Character
6. CharacterMugShot
7. Collection
8. Company
9. CompanyLogo
10. CompanyWebsite
11. Cover
12. ExternalGame
13. Franchise
14. Game
15. GameEngine
16. GameEngineLogo
17. GameMode
18. GameVersion
19. GameVersionFeature
20. GameVersionFeatureValue
21. GameVideo
22. Genre
23. InvolvedCompany
24. Keyword
25. MultiplayerMode
26. Platform
27. PlatformFamily
28. PlatformLogo
29. PlatformVersion
30. PlatformVersionCompany
31. PlatformVersionReleaseDate
32. PlatformWebsite
33. PlayerPerspective
34. ReleaseDate
35. Screenshot
36. Search
37. Theme
38. Website