承接 vertisan/oauth2-twitch-helix 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Build Status Latest Stable Version License

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

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-02