marcreichel / igdb-laravel
IGDB API版本4的Laravel包装器(Apicalypse),包括webhook处理
4.3.0
2024-07-01 09:48 UTC
Requires
- php: ^8.1
- ext-json: *
- guzzlehttp/guzzle: ~6.0|~7.0
- illuminate/support: ^9.0|^10.0|^11.0
- nesbot/carbon: ^2.53.1|^3.0
Requires (Dev)
- larastan/larastan: ^2.9.2
- laravel/pint: ^1.13
- nunomaduro/collision: ^5.3|^6.1|^7.0|^8.0
- orchestra/testbench: ^6.23|^7.0|^8.0|^9.0
- pestphp/pest: ^2
- pestphp/pest-plugin-type-coverage: ^2.8.3
- phpunit/phpunit: ^9.5.4 || ^10.0.0
- roave/security-advisories: dev-latest
- dev-main
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.8.1
- 3.8.0
- 3.7.0
- 3.6.1
- 3.6.0
- 3.5.3
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.0
- 3.3.1
- 3.3.0
- 3.2.1
- 3.2.0
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.0
- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.5
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 1.0.2
- 1.0.1
- 1.0.0
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.1
- v0.1.0
This package is auto-updated.
Last update: 2024-08-31 10:16:59 UTC
README
这是IGDB API版本4的Laravel包装器(Apicalypse),包括webhook处理。
基本安装
您可以通过composer使用以下命令安装此包:
composer require marcreichel/igdb-laravel
该包将自动注册其服务提供者。
要发布配置文件到config/igdb.php
,请运行:
php artisan igdb:publish
这是配置文件的默认内容:
return [ /* * These are the credentials you got from https://dev.twitch.tv/console/apps */ 'credentials' => [ 'client_id' => env('TWITCH_CLIENT_ID', ''), 'client_secret' => env('TWITCH_CLIENT_SECRET', ''), ], /* * This package caches queries automatically (for 1 hour per default). * Here you can set how long each query should be cached (in seconds). * * To turn cache off set this value to 0 */ 'cache_lifetime' => env('IGDB_CACHE_LIFETIME', 3600), /* * Path where the webhooks should be handled. */ 'webhook_path' => 'igdb-webhook/handle', /* * The webhook secret. * * This needs to be a string of your choice in order to use the webhook * functionality. */ 'webhook_secret' => env('IGDB_WEBHOOK_SECRET', null), ];
文档
您可以在专门的文档网站上找到完整文档。
测试
使用以下命令运行测试:
composer test
贡献
欢迎Pull requests :)