jrodella/oauth2-streamlabs

StreamLabs OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1.0.0 2021-10-29 18:40 UTC

This package is auto-updated.

Last update: 2024-10-29 06:00:26 UTC


README

CircleCI Build Latest Stable Version License

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