承接 derilkillms/mini-jwt 相关项目开发

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-20