承接 jasonroyle/li3_jwt 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jasonroyle/li3_jwt

最新稳定版本:0.0.2

Composer 安装命令:

composer require jasonroyle/li3_jwt

包简介

JSON Web Token Session Adapter for Lithium

README 文档

README

Dependencies

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
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-17