PHPackages                             yzh52521/webman-jwt-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. yzh52521/webman-jwt-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

yzh52521/webman-jwt-auth
========================

Lcobucci/jwt Integration For webman

v3.0.8(2y ago)111.7k4[7 issues](https://github.com/yuanzhihai/webman-jwt-auth/issues)[1 PRs](https://github.com/yuanzhihai/webman-jwt-auth/pulls)MITPHPPHP &gt;=8.0.0

Since Apr 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yuanzhihai/webman-jwt-auth)[ Packagist](https://packagist.org/packages/yzh52521/webman-jwt-auth)[ RSS](/packages/yzh52521-webman-jwt-auth/feed)WikiDiscussions 3.x Synced today

READMEChangelog (10)Dependencies (3)Versions (42)Used By (0)

webman-jwt-auth
===============

[](#webman-jwt-auth)

说明
--

[](#说明)

> 目前支持如下三大类型加密方式：RSA,HASH,DSA。再各分256、384、512位。 默认是HS256，即hash 256位加密。

> 需要修改加密方式，请修改参数：signer，参数选项：

- HS256 备注：hash 256位
- HS384 备注：hash 384位
- HS512 备注：hash 512位
- RS256 备注：rsa 256位
- RS384 备注：rsa 384位
- RS512 备注：rsa 512位
- ES256 备注：dsa 256位
- ES384 备注：dsa 384位
- ES512 备注：dsa 512位

> 重要：RSA和DSA 都是非对称加密方式，除了修改参数signer外，需要配置：PUBLIC\_KEY、PRIVATE\_KEY两个参数， 这两个参数是密钥文件路径

安装
--

[](#安装)

```
composer require yzh52521/webman-jwt-auth
```

完整配置
----

[](#完整配置)

```
