jasonroyle/li3_jwt
最新稳定版本:0.0.2
Composer 安装命令:
composer require jasonroyle/li3_jwt
包简介
JSON Web Token Session Adapter for Lithium
README 文档
README
Dependencies
- PHP >= 5.4
- firebase/php-jwt
Installation
Composer
composer require jasonroyle/li3_jwt
Enable the Libraries
Make the application aware of the libraries by adding the following to app/config/bootstrap/libraries.php.
/** * Add some plugins: */ Libraries::add('li3_jwt'); /** * Load composer libraries */ require_once(dirname(LITHIUM_APP_PATH) . '/vendor/autoload.php');
Configuration
Add the following configuration to app/config/bootstrap/session.php replacing ***SECRET*** with your secret string.
use lithium\storage\Session; Session::config(['default' => [ 'adapter' => 'Token', 'header' => 'Authorization', 'prefix' => 'Bearer ', 'strategies' => ['Jwt' => [ 'secret' => '***SECRET***' ]] ]]);
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-17