abenevaut / laravel-twitch-client
Laravel Http Client Infrastructure
0.0.2
2025-02-09 15:09 UTC
Requires
- php: ^8.3
- abenevaut/laravel-client-infrastructure: ^0.0.2
- abenevaut/laravel-infrastructure: ^0.4.0
- illuminate/container: ^11.41
Requires (Dev)
- fakerphp/faker: ^1.24
- illuminate/http: ^11
- mockery/mockery: ^1.6
- nikic/php-parser: ^5.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.11
This package is auto-updated.
Last update: 2025-02-09 15:11:27 UTC
README
Installation
You can install the package via composer:
composer require abenevaut/laravel-bluesky-client
Add Twitch service to your config/services.php
file:
'twitch' => [ 'oauthBaseUrl' => env('TWITCH_OAUTH_URL', 'https://id.twitch.tv/oauth2/token'), // Twitch OAuth URL 'baseUrl' => env('TWITCH_URL', 'https://api.twitch.tv/helix'), // Twitch API URL 'client_id' => env('TWITCH_CLIENT_ID'), // Your Twitch client id 'client_secret' => env('TWITCH_CLIENT_SECRET'), // Your Twitch client secret 'debug' => env('TWITCH_DEBUG', false), // Debug mode ],
Usage
use Abenevaut\Twitch\Facades\Twitch; Twitch::getClient(): TwitchClient; // Get the Twitch client Twitch::countFollowers(string $broadcaster): int; // Get the number of followers of an account, like abenevaut