PHPackages                             xiaodi/think-jwt - 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. xiaodi/think-jwt

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

xiaodi/think-jwt
================

ThinkPHP Jwt Component

v3.0.0.beta.7(5y ago)764.8k↓100%19[10 issues](https://github.com/friendsofthinkphp/think-jwt/issues)2MITPHPPHP &gt;=7.4.0

Since Dec 5Pushed 4y ago4 watchersCompare

[ Source](https://github.com/friendsofthinkphp/think-jwt)[ Packagist](https://packagist.org/packages/xiaodi/think-jwt)[ RSS](/packages/xiaodi-think-jwt/feed)WikiDiscussions next Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (53)Used By (2)

think-jwt
=========

[](#think-jwt)

[![Build Status](https://camo.githubusercontent.com/6692d4984380e0df059f20596b18ead50070e5aaf237653755b232ee7d8e74d4/68747470733a2f2f7472617669732d63692e6f72672f6564656e6c65756e672f7468696e6b2d6a77742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/edenleung/think-jwt)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d9e9589bb935cc5052e05e37e6205ae108c1686abbb139745eeeec21e3b23469/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6564656e6c65756e672f7468696e6b2d6a77742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/edenleung/think-jwt/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/afd223df8692e54516a466df7a852a3f7c0ea918ee028a96175a23b070afd12c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6564656e6c65756e672f7468696e6b2d6a77742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/edenleung/think-jwt/?branch=master)

只支持 `thinkphp 6.0`

安装
--

[](#安装)

稳定版

```
$ composer require xiaodi/think-jwt
```

开发版

```
$ composer require xiaodi/think-jwt:dev-next
```

使用
--

[](#使用)

1. 配置 `config/jwt.php`

完整配置

```
