neoan3-apps/jwt
Composer 安装命令:
composer require neoan3-apps/jwt
包简介
neoan3 wrapper for JSON WEB TOKEN using Firebase
README 文档
README
Simple JWT implementation suited for neoan3 developers.
Installation
composer require neoan3-apps/jwt
Quick start
require dirname(__FILE__).'/vendor/autoload.php' use Neoan3\Apps\JWT; $mySecret = '123456'; JWT::expiresAt('+1 hour'); // encode $token = JWT::encode($mySecret); // verify & decode $decoded = JWT::decode($token, $mySecret); if($decoded['error'] === false){ print_r($decoded['decoded']); }
统计信息
- 总下载量: 843
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-30