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

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

diovanegabriel/jwt-auth
=======================

JSON Web Token Authentication for Laravel and Lumen

1.0.0(2y ago)012MITPHPPHP ^8.1

Since Apr 6Pushed 2y agoCompare

[ Source](https://github.com/DiovaneGabriel/jwt-auth)[ Packagist](https://packagist.org/packages/diovanegabriel/jwt-auth)[ Docs](https://github.com/PHP-Open-Source-Saver/jwt-auth)[ RSS](/packages/diovanegabriel-jwt-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (14)Versions (3)Used By (0)

[![](https://camo.githubusercontent.com/8c0f5023fbe9d5d104665129a4c3716665c964eb59e8eebc513498a57e5bbd5f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e672d61722d626c7565)](README.pr-ar.md)Credits
-------

[](#credits)

[This repository is a fork from original tymonsdesigns/jwt-auth](https://github.com/tymondesigns/jwt-auth/wiki), we decided to fork and work independent because the original one was not being updated for long time and keep doing support for the application.

Migrating from [`tymondesigns/jwt-auth`](https://github.com/tymondesigns/jwt-auth)
----------------------------------------------------------------------------------

[](#migrating-from-tymondesignsjwt-auth)

This uses different namespace, then `tymondesigns/jwt-auth`, but overall, provides the same API, that makes migration to this repository pretty easy:

1. Run `composer remove tymon/jwt-auth`> **Info** An error will appear because the package is still in use, ignore it.
2. Replace all the occurrences of `Tymon\JWTAuth` with `PHPOpenSourceSaver\JWTAuth`. > **Tip**: You can use *Find and Replace* feature of your IDE. Try it with Ctrl + Shift + R
3. Run `composer require php-open-source-saver/jwt-auth`

### Notes

[](#notes)

Due to new features, added in our library, there are some incompatibilities. *This won't hurt you in most cases*, unless you have [implicitly disabled autodiscovery](https://laravel.com/docs/11.x/packages#opting-out-of-package-discovery) for original Tymon's package.

Current compatability breaks:

- [`JWTGuard`](src/JWTGuard.php) have new required constructor parameter [`$eventDispatcher`](src/Providers/AbstractServiceProvider.php#L97)

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

[](#documentation)

Full documentation is available at [laravel-jwt-auth.readthedocs.io](https://laravel-jwt-auth.readthedocs.io/)

---

Security
--------

[](#security)

If you want to disclose a security related issue, please follow our [security policy](https://github.com/PHP-Open-Source-Saver/jwt-auth/security/policy)

License
-------

[](#license)

The MIT License (MIT)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.9% of commits — single point of failure

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

766d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/921b18ce9de257119165e0fa93dd9cb552df2b414152361ea67729d3a4bbb88b?d=identicon)[diovanegabriel](/maintainers/diovanegabriel)

---

Top Contributors

[![tymondesigns](https://avatars.githubusercontent.com/u/1801923?v=4)](https://github.com/tymondesigns "tymondesigns (1214 commits)")[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (168 commits)")[![mfn](https://avatars.githubusercontent.com/u/87493?v=4)](https://github.com/mfn "mfn (75 commits)")[![eschricker](https://avatars.githubusercontent.com/u/56429442?v=4)](https://github.com/eschricker "eschricker (63 commits)")[![Messhias](https://avatars.githubusercontent.com/u/1161283?v=4)](https://github.com/Messhias "Messhias (58 commits)")[![leon0399](https://avatars.githubusercontent.com/u/1759654?v=4)](https://github.com/leon0399 "leon0399 (34 commits)")[![fwilliamconceicao](https://avatars.githubusercontent.com/u/87824679?v=4)](https://github.com/fwilliamconceicao "fwilliamconceicao (31 commits)")[![tdhsmith](https://avatars.githubusercontent.com/u/1791252?v=4)](https://github.com/tdhsmith "tdhsmith (17 commits)")[![dmason30](https://avatars.githubusercontent.com/u/20278756?v=4)](https://github.com/dmason30 "dmason30 (12 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (11 commits)")[![seanclowdy](https://avatars.githubusercontent.com/u/7819110?v=4)](https://github.com/seanclowdy "seanclowdy (11 commits)")[![avidianity](https://avatars.githubusercontent.com/u/56546989?v=4)](https://github.com/avidianity "avidianity (10 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (8 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (7 commits)")[![treehousetim](https://avatars.githubusercontent.com/u/541887?v=4)](https://github.com/treehousetim "treehousetim (6 commits)")[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (5 commits)")[![overtrue](https://avatars.githubusercontent.com/u/1472352?v=4)](https://github.com/overtrue "overtrue (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![DiovaneGabriel](https://avatars.githubusercontent.com/u/12485850?v=4)](https://github.com/DiovaneGabriel "DiovaneGabriel (3 commits)")[![gpasztor87](https://avatars.githubusercontent.com/u/3843377?v=4)](https://github.com/gpasztor87 "gpasztor87 (3 commits)")

---

Tags

jwtlaravelauthAuthenticationJSON Web Token

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)

PHPackages © 2026

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