PHPackages                             baywa-re-lusy/jwt-authentication - 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. baywa-re-lusy/jwt-authentication

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

baywa-re-lusy/jwt-authentication
================================

BayWa r.e. LUSY JWT Authentication

4.0.0(1mo ago)01.1k1proprietaryPHPPHP &gt;=8.2

Since Aug 1Pushed 3w ago1 watchersCompare

[ Source](https://github.com/baywa-re-lusy/jwt-authentication)[ Packagist](https://packagist.org/packages/baywa-re-lusy/jwt-authentication)[ Docs](https://github.com/baywa-re-lusy/jwt-authentication)[ RSS](/packages/baywa-re-lusy-jwt-authentication/feed)WikiDiscussions 4.x Synced today

READMEChangelog (10)Dependencies (19)Versions (25)Used By (1)

BayWa r.e. JWT Authentication
=============================

[](#baywa-re-jwt-authentication)

[![CircleCI](https://camo.githubusercontent.com/b0840f9621a4df8eeecf4173ba4a8c62b90074a3a45ed309e6936464ddf1b8d7/68747470733a2f2f646c2e636972636c6563692e636f6d2f7374617475732d62616467652f696d672f67682f62617977612d72652d6c7573792f6a77742d61757468656e7469636174696f6e2f747265652f6d61696e2e7376673f7374796c653d737667)](https://dl.circleci.com/status-badge/redirect/gh/baywa-re-lusy/jwt-authentication/tree/main)

Installation
------------

[](#installation)

To install the JWT Authentication service, you will need [Composer](http://getcomposer.org/) in your project:

```
composer require baywa-re-lusy/jwt-authentication
```

Usage example code for Laminas projects
---------------------------------------

[](#usage-example-code-for-laminas-projects)

In `Module.php`:

```
use BayWaReLusy\JwtAuthentication\TokenService;
use Laminas\Cache\Psr\CacheItemPool\CacheItemPoolDecorator;
use BayWaReLusy\JwtAuthentication\Token;

public function onAuthentication(MvcAuthEvent $e): IdentityInterface
{
    $jwt                          = ...; // The JSON Web Token
    $laminasCacheStorageInterface = ...; // Instance of Laminas\Cache\Storage\StorageInterface
    $jwksUrl                      = ...; // URL from where to get JWKs
    $cache                        = new CacheItemPoolDecorator($laminasCacheStorageInterface);

    $tokenService = new TokenService();

    try {
        $token = $tokenService->validateToken($jwt, $cache, $jwksUrl);
    } catch (\BayWaReLusy\JwtAuthentication\InvalidTokenException $e) {
        return new GuestIdentity();
    }

    ...
}
```

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance93

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~67 days

Recently: every ~26 days

Total

22

Last Release

25d ago

Major Versions

1.3.0 → 2.0.02023-01-09

2.x-dev → 3.0.02024-05-21

3.x-dev → 4.0.02026-05-12

4.x-dev → 5.x-dev2026-06-09

PHP version history (4 changes)1.0.0PHP ^8.0

2.0.1PHP &gt;=8.1

3.0.2PHP &gt;=8.2

5.x-devPHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d6584819dabfe835a6caa1826bf2716dee040714e2a769365afa84d68b144b9?d=identicon)[ppaulis](/maintainers/ppaulis)

---

Top Contributors

[![MaximJam](https://avatars.githubusercontent.com/u/100141314?v=4)](https://github.com/MaximJam "MaximJam (21 commits)")[![ppaulis](https://avatars.githubusercontent.com/u/1609503?v=4)](https://github.com/ppaulis "ppaulis (20 commits)")[![marpaj](https://avatars.githubusercontent.com/u/18439684?v=4)](https://github.com/marpaj "marpaj (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/baywa-re-lusy-jwt-authentication/health.svg)

```
[![Health](https://phpackages.com/badges/baywa-re-lusy-jwt-authentication/health.svg)](https://phpackages.com/packages/baywa-re-lusy-jwt-authentication)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k294.2M219](/packages/google-auth)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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