LaravelPackages.net
Acme Inc.
Toggle sidebar
marcreichel/igdb-laravel

Eloquent-style models and query builder for the IGDB API in Laravel, with Twitch authentication and webhook support handled for you.

185.835
114
6.1.0
About marcreichel/igdb-laravel

marcreichel/igdb-laravel is a Laravel package for eloquent-style models and query builder for the igdb api in laravel, with twitch authentication and webhook support handled for you.. It currently has 114 GitHub stars and 185.835 downloads on Packagist (latest version 6.1.0). Install it with composer require marcreichel/igdb-laravel. Discover more Laravel packages by marcreichel or browse all Laravel packages to compare alternatives.

Last updated

Laravel IGDB Wrapper

This is a Laravel wrapper for version 4 of the IGDB API (Apicalypse) including webhook handling.

Packagist Version Packagist Downloads Tests Pint PHPStan CodeFactor codecov License

Installation

Create a Twitch Developer App, then install the package via composer:

composer require marcreichel/igdb-laravel

Publish the config file to config/igdb.php and set your TWITCH_CLIENT_ID and TWITCH_CLIENT_SECRET:

php artisan igdb:publish

Example

use MarcReichel\IGDBLaravel\Models\Game;

$game = Game::where('name', 'Fortnite')->first();

Documentation

  1. Installation
  2. Getting started
  3. Select (Fields)
  4. Search
  5. Fuzzy Search
  6. Where clauses
  7. Ordering, Limit, & Offset
  8. Cache
  9. Relationships (Extends)
  10. Fetch results
  11. Reading properties
  12. Images
  13. Webhooks

Testing

Run the tests with:

composer test

Contribution

Pull requests are welcome :)

Comments