PHPackages                             veka-server/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. veka-server/jwt

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

veka-server/jwt
===============

Un middleware minimaliste pour firebase/php-jwt

0.0.6(3y ago)0391MITPHP

Since Mar 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/veka-server/jwt)[ Packagist](https://packagist.org/packages/veka-server/jwt)[ RSS](/packages/veka-server-jwt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (1)

JWT
===

[](#jwt)

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

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

[](#installation)

Via composer

```
composer require veka-server/jwt

```

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

[](#utilisation-des-tokens)

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

        /** @var VekaServer\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 VekaServer\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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

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

Every ~0 days

Total

6

Last Release

1149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/772a7f20fd967e8ace6dfb6ce4746f7882dc7523c0d2c885617f78edab4eae69?d=identicon)[veka-server](/maintainers/veka-server)

---

Top Contributors

[![veka-server](https://avatars.githubusercontent.com/u/3823643?v=4)](https://github.com/veka-server "veka-server (8 commits)")

---

Tags

jwtpsr-15minimalistfirebase-php-jwt

### Embed Badge

![Health badge](/badges/veka-server-jwt/health.svg)

```
[![Health](https://phpackages.com/badges/veka-server-jwt/health.svg)](https://phpackages.com/packages/veka-server-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)
