PHPackages                             luochuan/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. luochuan/jwt-auth

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

luochuan/jwt-auth
=================

JSON Web Token Authentication for Laravel and Lumen

11431PHP

Since Jan 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/luochuan2008/jwt-auth)[ Packagist](https://packagist.org/packages/luochuan/jwt-auth)[ RSS](/packages/luochuan-jwt-auth/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![jwt-auth-banner](https://cloud.githubusercontent.com/assets/1801923/9915273/119b9350-5cae-11e5-850b-c941cac60b32.png)](https://cloud.githubusercontent.com/assets/1801923/9915273/119b9350-5cae-11e5-850b-c941cac60b32.png)

[![PHPUnit](https://github.com/luochuandesigns/jwt-auth/workflows/PHPUnit%20tests/badge.svg)](https://travis-ci.org/luochuandesigns/jwt-auth)[![Codecov branch](https://camo.githubusercontent.com/76da2de628f62f8fecb31eceb4e7df6567cd2aafef46bf7c81026c699cfbbc72/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6c756f636875616e64657369676e732f6a77742d617574682f646576656c6f702e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f6465636f76)](https://codecov.io/github/luochuandesigns/jwt-auth)[![StyleCI](https://camo.githubusercontent.com/5863a40feba936dbde42870ecfca0ba3991b605e6fd6ae8fb5ac5eda410c56ed/68747470733a2f2f7374796c6563692e696f2f7265706f732f32333638303637382f736869656c643f7374796c653d666c61742d737175617265)](https://styleci.io/repos/23680678)[![Latest Version](https://camo.githubusercontent.com/3870c6c572e72465f7407a3ab6dfe1fcef90c2444eb35f079000f5ea887c764f/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756f636875616e2f6a77742d617574682e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f6d706f736572)](https://packagist.org/packages/luochuan/jwt-auth)[![Latest Dev Version](https://camo.githubusercontent.com/244c3ed654da3e9c1fc0a0d2906bc6e4d134c4d403dda84bd33e20ff2f6fb56d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f6c756f636875616e2f6a77742d617574682e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f6d706f736572)](https://packagist.org/packages/luochuan/jwt-auth#dev-develop)[![Monthly Downloads](https://camo.githubusercontent.com/ca99fc10bed7bec769dee1706627559c0e8d0e3d01654316bbb8bb9b972f80b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6c756f636875616e2f6a77742d617574682e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f6d706f736572)](https://packagist.org/packages/luochuan/jwt-auth)

Documentation
-------------

[](#documentation)

Documentation for `1.*` [here](http://jwt-auth.com)

[![](https://user-images.githubusercontent.com/1801923/57975478-a7a88900-79c1-11e9-924b-d7fa742f743b.png)](https://www.patreon.com/bePatron?u=11815122)

---

### Supported by Auth0 [![](https://user-images.githubusercontent.com/1801923/31792116-d4fca9ec-b512-11e7-92eb-56e8d3df8e70.png)](https://user-images.githubusercontent.com/1801923/31792116-d4fca9ec-b512-11e7-92eb-56e8d3df8e70.png)

[](#supported-by-auth0-)

If you want to easily add secure authentication to Laravel apps, feel free to check out Auth0's SDK and free plan at [auth0.com/developers](https://auth0.com/developers?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=jwt-auth&utm_content=auth)

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT)

thank you for Tymon! This is a modified version of it

[![SensioLabs Insight](https://camo.githubusercontent.com/d39212d793e20846d3342af29ecc586d068b4fe2b704ea14f807129adcf0c143/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62613630303038322d373836392d346561382d623837372d3062663661383664343938382f6269672e737667)](https://insight.sensiolabs.com/projects/ba600082-7869-4ea8-b877-0bf6a86d4988)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/82dc1e66e3a54692f7fecbbce2fd75a43c361e89d0263f7a5838ad29ad879834?d=identicon)[luochuan](/maintainers/luochuan)

### Embed Badge

![Health badge](/badges/luochuan-jwt-auth/health.svg)

```
[![Health](https://phpackages.com/badges/luochuan-jwt-auth/health.svg)](https://phpackages.com/packages/luochuan-jwt-auth)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
