oauth2-mastodon:Mastodon OAuth 2.0对PHP League的OAuth 2.0客户端的支持

时间:2021-02-03 13:22:53
【文件属性】:
文件名称:oauth2-mastodon:Mastodon OAuth 2.0对PHP League的OAuth 2.0客户端的支持
文件大小:12KB
文件格式:ZIP
更新时间:2021-02-03 13:22:53
oauth2 mastodon oauth2-client mastodon-api MastodonPHP oauth2-mastodon 安装 通过作曲家 $ composer require lrf141/oauth2-mastodon 用法 <?php use Lrf141 \ OAuth2 \ Client \ Provider \ Mastodon ; session_start (); $ provider = new Mastodon ([ 'clientId' => '' , 'clientSecret' => '' , 'redirectUri' => 'redirect url' , 'instance' => 'https://mstdn.jp' , 'scope' => 'read write follow' , ]); if (! isset ( $ _GET [ 'code' ])) { $ authUrl = $ provider -> getAuthorizationUrl (); $ _SESSION [ 'oauth2state' ] = $ provider -> getState ();
【文件预览】:
oauth2-mastodon-master
----.scrutinizer.yml(787B)
----ISSUE_TEMPLATE.md(717B)
----src()
--------Provider()
----PULL_REQUEST_TEMPLATE.md(2KB)
----CONTRIBUTING.md(1KB)
----.travis.yml(751B)
----LICENSE.md(1KB)
----phpunit.xml(1KB)
----README.md(4KB)
----tests()
--------Provider()
----.gitignore(68B)
----CHANGELOG.md(547B)
----composer.json(1KB)

网友评论