tabs-software / oauth2-tabs2
此包已被弃用且不再维护。未建议替代包。
tabs 2 OAuth 2.0 客户端提供商,用于 PHP League OAuth2-Client
0.1.1
2018-04-20 11:06 UTC
Requires
- php: >=5.5.0
- league/oauth2-client: ^2.0
Requires (Dev)
- phpunit/phpunit: ^7.0
- squizlabs/php_codesniffer: ^3.2
This package is not auto-updated.
Last update: 2020-10-17 10:23:07 UTC
README
tabs 2 OAuth 2.0 客户端提供商,用于 PHP League OAuth2-Client
安装
通过 Composer
$ composer require CarltonSoftware/oauth2-tabs2
使用
使用方式与 League 的 OAuth 客户端相同,使用 \League\OAuth2\Client\Provider\Tabs2
作为提供者。
$provider = new League\OAuth2\Client\Provider\Tabs2([ 'apiHost' => 'https://mockl.test.api.tabs-software.co.uk', 'clientId' => '{tabs2-client-id}', 'clientSecret' => '{tabs2-client-secret}', 'redirectUri' => 'https://example.com/callback-url', // Only required if using the authorisation code grant type ]);