jrodella / oauth2-streamlabs
StreamLabs OAuth 2.0 Client Provider for The PHP League OAuth2-Client
1.0.0
2021-10-29 18:40 UTC
Requires
- php: >=5.6.0
- league/oauth2-client: ^2.2.1
Requires (Dev)
- ext-json: *
- jakub-onderka/php-parallel-lint: ^1.0
- mockery/mockery: ^1.2
- phpunit/phpunit: ^5.7
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2024-10-29 06:00:26 UTC
README
This package provides StreamLabs OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
To install, use composer:
composer require jrodella/oauth2-streamlabs
Usage
Usage is the same as The League's OAuth client, using Jrodella\OAuth2\Client\Provider\StreamLabs
as the provider.
$provider = new \Jrodella\OAuth2\Client\Provider\StreamLabs([ 'clientId' => "YOUR_CLIENT_ID", 'clientSecret' => "YOUR_CLIENT_SECRET", 'redirectUri' => "http://your-redirect-uri-passed-in-streamlabs-dashboard" ]);
You can also optionally add a scopes
key to the array passed to the constructor. The available scopes are documented
on the StreamLabs API Reference.
Testing
$ ./vendor/bin/phpunit