stevenmaguire / trello-oauth1-server
1.0.0
2015-01-13 18:55 UTC
Requires
- php: >=5.4.0
- league/oauth1-client: ~1.0
Requires (Dev)
- mockery/mockery: 0.7.2
This package is auto-updated.
Last update: 2022-02-01 12:43:29 UTC
README
此包现在是 League OAuth1 客户端 的组成部分。
如果您目前的项目依赖于此包,请更新 composer 依赖以使用 League OAuth1 客户端版本 >1.1.0。
Trello OAuth 1 服务器
使用 OAuth 1 认证 Trello 的 PHP 客户端。此包是为 League OAuth1 客户端 制作的。
安装
通过 Composer
$ composer require stevenmaguire/trello-oauth1-server
使用方法
实例化服务器
$server = new \Stevenmaguire\OAuth2\Client\Server\Trello(array( 'identifier' => 'your-identifier', 'secret' => 'your-secret', 'callback_uri' => 'http://your-callback-uri/', 'name' => 'your-application-name', // optional, defaults to null 'expiration' => 'your-application-expiration', // optional ('never', '1day', '2days'), defaults to '1day' 'scope' => 'your-application-scope' // optional ('read', 'read,write'), defaults to 'read' ));
文档
有关更多信息,请参阅 League OAuth1 客户端 的 README 文件。
测试
$ phpunit
贡献
请参阅 CONTRIBUTING 获取详细信息。
致谢
许可证
MIT 许可证 (MIT)。请参阅 许可证文件 以获取更多信息。