Download the PHP package kylesean/hyperf-jwt without Composer
On this page you can find all versions of the php package kylesean/hyperf-jwt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kylesean/hyperf-jwt
More information about kylesean/hyperf-jwt
Files in kylesean/hyperf-jwt
Download kylesean/hyperf-jwt
More information about kylesean/hyperf-jwt
Files in kylesean/hyperf-jwt
Vendor kylesean
Package hyperf-jwt
Short Description A JWT (JSON Web Token) package for Hyperf framework.
License MIT
Package hyperf-jwt
Short Description A JWT (JSON Web Token) package for Hyperf framework.
License MIT
Please rate this library. Is it a good library?
Informations about the package hyperf-jwt
Hyperf JWT
为 Hyperf 框架设计的 JWT (JSON Web Token) 认证包,提供了 Token 签发、解析、验证、刷新、黑名单等功能。
安装
配置密钥和算法
其他配置
参考 config/autoload/jwt.php
中的注释,调整以下配置
ttl
:Token 有效期 (分钟)。refresh_ttl
:Token 过期后可刷新的宽限期 (分钟)。blacklist_enabled
:是否启用黑名单。blacklist_cache_driver
:黑名单使用的缓存驱动。token_parsers
:从请求中提取 Token 的解析器链。issuer (iss)
和audience (aud)
声明。required_claims
:验证时必须存在的声明。leeway
:时钟偏差容忍度 (秒)。
签发 Token
解析和验证 Token
刷新 Token
使 Token 失效(加入黑名单)
自定义 PayloadFactory
精细地控制签发 Token 时的默认载荷,或者根据不同场景添加不同的默认声明
All versions of hyperf-jwt with dependencies
PHP Build Version
Package Version
The package kylesean/hyperf-jwt contains the following files
Loading the files please wait ....