PHPackages                             oxygenzsas/composer\_lib\_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. oxygenzsas/composer\_lib\_jwt

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

oxygenzsas/composer\_lib\_jwt
=============================

Un middleware minimaliste pour firebase/php-jwt

0.0.6(2y ago)03MITPHP

Since Oct 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/OxygenzSAS/composer_lib_jwt)[ Packagist](https://packagist.org/packages/oxygenzsas/composer_lib_jwt)[ RSS](/packages/oxygenzsas-composer-lib-jwt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

JWT
===

[](#jwt)

Un middleware minimaliste pour firebase/php-jwt basée sur

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

[](#installation)

Via composer

```
composer require oxygenzsas/composer_lib_jwt

```

Utilisation des tokens
----------------------

[](#utilisation-des-tokens)

```
        $data = ['id_user' =>555];

        /** @var OxygenzSAS\JWT\JWT $jwt */
        $jwt = Container::getInstance()->get('JWT');
        $jwtToken = $jwt->getToken($data);

        $decoded = $jwt->decode($jwtToken);

        $retour = [
                "message" => "Successful login",
                "jwt" => $jwtToken,
                "expireAt" => $decoded->exp
        ];
```

Utiliser le router comme un middleware PSR-15
---------------------------------------------

[](#utiliser-le-router-comme-un-middleware-psr-15)

```
// creation du dispatcher
$Dispatcher = new OxygenzSAS\Dispatcher\Dispatcher();

// creer le jwt
$jwt = new \App\classe\JWT(
                  $private, // private_key
                  $public, // public_key
                  'localhost:8000', // iss
                  3600, // expire time token -- facultatif default = 3600
                  'RS256', // algorithm de chiffrement -- facultatif default = RS256
                  'localhost:8000', // aud -- facultatif default = iss
              );

// ajout le middlewares
$Dispatcher->pipe($jwt);
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

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

948d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2aa5bc299807acddd25b90181d33054d40bc1815e82657362c207a6593ade44c?d=identicon)[nvanhaezebrouck](/maintainers/nvanhaezebrouck)

---

Top Contributors

[![nvanhaezebrouck](https://avatars.githubusercontent.com/u/113363985?v=4)](https://github.com/nvanhaezebrouck "nvanhaezebrouck (1 commits)")

---

Tags

jwtpsr-15minimalistfirebase-php-jwt

### Embed Badge

![Health badge](/badges/oxygenzsas-composer-lib-jwt/health.svg)

```
[![Health](https://phpackages.com/badges/oxygenzsas-composer-lib-jwt/health.svg)](https://phpackages.com/packages/oxygenzsas-composer-lib-jwt)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

30317.2M40](/packages/simplesamlphp-saml2)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[admad/cakephp-jwt-auth

CakePHP plugin for authenticating using JSON Web Tokens

160680.3k8](/packages/admad-cakephp-jwt-auth)[jimtools/jwt-auth

PSR-15 JWT Authentication middleware, A replacement for tuupola/slim-jwt-auth

20142.3k3](/packages/jimtools-jwt-auth)[damirka/yii2-jwt

Trait for easier JWT integration

6586.6k](/packages/damirka-yii2-jwt)

PHPackages © 2026

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