derilkillms/mini-jwt
最新稳定版本:1.00
Composer 安装命令:
composer require derilkillms/mini-jwt
包简介
Simple Genearete JWT
README 文档
README
Instalation
composer require derilkillms/mini-jwt
Information
About JWT : (wikipedia) JSON Web Token (JWT, pronounced /dʒɒt/, same as the word "jot"[1]) is a proposed Internet standard for creating data with optional signature and/or optional encryption whose payload holds JSON that asserts some number of claims. The tokens are signed either using a private secret or a public/private key.
....
This Repository Based : PHP
require_once(__DIR__ .'/vendor/autoload.php'); use Derilkillms\MiniJwt\Auth; $auth = new Auth(); $header = [ 'alg' => 'HS256', 'typ' => 'JWT' ]; $payloads = [ 'user_id' => 1, 'user_email' => "derilkillms@gmail.com", 'exp' => time() + 3600 ]; $secret_key= 'mysecret'; $auth->generateJWT($payloads,$header,$secret_key); // generate jwt $auth->verifyJWT($token, $secret_key); //verify JWT
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-20