vertisan/oauth2-twitch-helix
最新稳定版本:2.0.0
Composer 安装命令:
composer require vertisan/oauth2-twitch-helix
包简介
Twitch (new version Helix) OAuth 2.0 Client Provider for The PHP League OAuth2-Client
README 文档
README
This package provides Twitch (new version Helix) OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
To install, use Composer:
composer require vertisan/oauth2-twitch-helix
Usage
Usage is the same as The League's OAuth client, using Vertisan\OAuth2\Client\Provider\TwitchHelix as the provider.
$provider = new \Vertisan\OAuth2\Client\Provider\TwitchHelix([ 'clientId' => "YOUR_CLIENT_ID", 'clientSecret' => "YOUR_CLIENT_SECRET", 'redirectUri' => "http://your-redirect-uri-passed-in-twitch-dashboard", ]);
You can also optionally add a scopes key to the array passed to the constructor. The available scopes are documented
on the New Twitch API Reference.
Testing
$ ./vendor/bin/phpunit
统计信息
- 总下载量: 55.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-02