nordsoftware/lumen-oauth2
最新稳定版本:3.1.1
Composer 安装命令:
composer require nordsoftware/lumen-oauth2
包简介
OAuth2 module for the Lumen PHP framework.
README 文档
README
OAuth2 module for the Lumen PHP framework.
Requirements
Usage
Installation
Run the following command to install the package through Composer:
composer require nordsoftware/lumen-oauth2
Install a storage connector by running one of the following commands:
composer require nordsoftware/lumen-oauth2-doctrine
or
composer require nordsoftware/lumen-oauth2-eloquent
or you can build your own.
Configure
Copy the configuration template in config/oauth2.php to your application's config directory and modify according to your needs.
For more information see the Configuration Files section in the Lumen documentation.
Bootstrapping
Add the following lines to bootstrap/app.php:
$app->configure('oauth2');
Depending on the storage connector in use, register the correct service provider, e.g.
$app->register(Nord\Lumen\OAuth2\Doctrine\DoctrineServiceProvider::class);
Then the OAuth2 module service provider.
$app->register(Nord\Lumen\OAuth2\OAuth2ServiceProvider::class);
And to use the middleware for authenticating users.
$app->routeMiddleware([ ..... Nord\Lumen\OAuth2\Middleware\OAuth2Middleware::class, ]);
Contributing
Please read the guidelines.
License
See LICENSE.
统计信息
- 总下载量: 2.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 34
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-15