PHPackages                             fidelize/jwt-auth-multiple-keys - 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. fidelize/jwt-auth-multiple-keys

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

fidelize/jwt-auth-multiple-keys
===============================

Add multiple keychain support to tymon/jwt-auth package

4.2.0(2y ago)015.5k↓16.7%2[1 issues](https://github.com/fidelize/jwt-auth-multiple-keys/issues)MITPHPPHP &gt;=7.0

Since Nov 15Pushed 2y ago4 watchersCompare

[ Source](https://github.com/fidelize/jwt-auth-multiple-keys)[ Packagist](https://packagist.org/packages/fidelize/jwt-auth-multiple-keys)[ Docs](https://github.com/fidelize/jwt-auth-multiple-keys)[ RSS](/packages/fidelize-jwt-auth-multiple-keys/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (18)Used By (0)

JWT Auth with Multiple Keys
===========================

[](#jwt-auth-with-multiple-keys)

This is an extension of [tymon/jwt-auth](https://github.com/tymondesigns/jwt-auth), adding support to:

- Replace deprecated `namshi/jose` with `lcobucci/jwt`
- JWT with key pairs instead of a secret
- Validate a JWT against multiple public keys
- Use JWT secret as a fallback

Installing
----------

[](#installing)

Firstly, you must install [tymon/jwt-auth](https://github.com/tymondesigns/jwt-auth).

Add this package through Composer: `composer require "fidelize/jwt-auth-multiple-keys"`

Edit your `config/jwt.php` file adding/editing these lines:

```

```

```
# Don't add a passphrase!
ssh-keygen -t rsa -b 4096 -f keys/jwt.app.key
openssl rsa -in keys/jwt.wholesaler.key -pubout -outform PEM -out keys/jwt.app.key.pub
```

Warning
-------

[](#warning)

Keys must follow the pattern name `key.*.key` and `key.*.key.pub`

TODO List
---------

[](#todo-list)

- Support different name patterns
- Add command to generate keys

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% 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

Every ~160 days

Recently: every ~266 days

Total

14

Last Release

1027d ago

Major Versions

1.2.0 → 2.0.02020-01-02

2.1.0 → 3.0.02020-08-14

3.0.2 → 4.0.02021-12-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/750b110f062631f035f4762f2b07f8e21de79d750f02e56050f491e3f7fe9d23?d=identicon)[alanwillms](/maintainers/alanwillms)

---

Top Contributors

[![alanwillms](https://avatars.githubusercontent.com/u/704204?v=4)](https://github.com/alanwillms "alanwillms (14 commits)")[![ABarciela](https://avatars.githubusercontent.com/u/69652144?v=4)](https://github.com/ABarciela "ABarciela (4 commits)")

---

Tags

jwtlaravelauthAuthenticationJSON Web Token

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fidelize-jwt-auth-multiple-keys/health.svg)

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

###  Alternatives

[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)

PHPackages © 2026

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