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

ActiveThink-extend[Authentication &amp; Authorization](/categories/authentication)

yaobiao/think-jwt
=================

ThinkPHP Jwt Component

v1.0.11(4y ago)0107MITPHPPHP &gt;=8.0

Since Dec 5Pushed 4y agoCompare

[ Source](https://github.com/yaobiao131/think-jwt)[ Packagist](https://packagist.org/packages/yaobiao/think-jwt)[ RSS](/packages/yaobiao-think-jwt/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (8)Versions (43)Used By (0)

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-master
```

使用
--

[](#使用)

1. 命令生成签名key

```
$ php think jwt:make
```

2. 配置 `config/jwt.php`

完整多应用配置

```
