Download the PHP package fts/oauth2 without Composer
On this page you can find all versions of the php package fts/oauth2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package oauth2
oauth2
功能
-
oauth2.0授权
安装
composer require fts/oauth
发布配置文件和公钥私钥
php artisan vendor:publish
创建公钥和私钥
private key
$ openssl genrsa -out privkey.pem 2048
public key
$ openssl rsa -in privkey.pem -pubout -out pubkey.pem
添加服务提供者
打开
config/app.php
并添加以下内容到 providers 数组:fts\OAuth2\OAuthServiceProvider.php::class
中间件
打开
app/Http/Kernel.php
并添加以下内容到 routeMiddleware 数组:'oauth' => fts\OAuth2\Middleware\OAuth2::class
用法
Router::middleware('oauth')->get('');
All versions of oauth2 with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
illuminate/filesystem Version ~5.0
symfony/http-foundation Version 2.6 - 4
illuminate/hashing Version ~5.0
bshaffer/oauth2-server-php Version ^1.10.0
bshaffer/oauth2-server-httpfoundation-bridge Version ^1.3
illuminate/filesystem Version ~5.0
symfony/http-foundation Version 2.6 - 4
illuminate/hashing Version ~5.0
bshaffer/oauth2-server-php Version ^1.10.0
bshaffer/oauth2-server-httpfoundation-bridge Version ^1.3
The package fts/oauth2 contains the following files
Loading the files please wait ....