PHPackages                             scaffoldeducation/jwt-manager-php - 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. scaffoldeducation/jwt-manager-php

ActiveLibrary

scaffoldeducation/jwt-manager-php
=================================

PHP library to manage JWT authentication

1.2.0(5y ago)1409GPL-3.0-onlyPHPPHP ^7.1CI failing

Since Jul 23Pushed 5y agoCompare

[ Source](https://github.com/scaffoldeducation/jwt-manager-php)[ Packagist](https://packagist.org/packages/scaffoldeducation/jwt-manager-php)[ RSS](/packages/scaffoldeducation-jwt-manager-php/feed)WikiDiscussions master Synced today

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

Jwt Manager PHP
===============

[](#jwt-manager-php)

PHP library to manage JWT authentication

### Installation

[](#installation)

Requires [PHP](https://php.net) 7.1.

- Original source and doc: [Kiwfy - JWT Manager PHP](https://github.com/kiwfy/jwt-manager-php)

The recommended way to install is through [Composer](https://getcomposer.org/).

```
composer require scaffoldeducation/jwt-manager-php
```

### Migration

[](#migration)

To execute migration on a Lumen system, you will need import JwtManagerServiceProvider in you application:

Open `.\bootstrap\app.php` and add this line: `$app->register(JwtManager\JwtManagerServiceProvider::class);`

You can custom blacklist table name at your .env file (`default: oauth_jwt_blacklist`):

`OAUTH_TABLE_BLACKLIST=oauth_jwt_blacklist`

Now execute on your terminal this command: `php artisan migratre`

### Usage

[](#usage)

Import this library in your application and use:

```
// expire and renew is seconds (900 = 15 minutes)
$jwt = new JwtManager(string $appSecret, string $context, int $expire, int $renew);

// generete a new token
$token = $jwt->generate(string $audience, string $subject, array $payload);

// to invalid this token, use:
$jwt->turnInvalid($token);
```

### Sample

[](#sample)

it's a good idea to look in the sample folder to understand how it works.

First verify if all dependencies is installed (if need anyelse)

```
composer install --no-dev --prefer-dist
```

and run

```
php sample/jwtManager-sample.php
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~119 days

Total

3

Last Release

1879d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34657554?v=4)[Scaffold Education](/maintainers/scaffoldeducation)[@scaffoldeducation](https://github.com/scaffoldeducation)

---

Top Contributors

[![matmper](https://avatars.githubusercontent.com/u/8351960?v=4)](https://github.com/matmper "matmper (6 commits)")[![espositovitor](https://avatars.githubusercontent.com/u/26362498?v=4)](https://github.com/espositovitor "espositovitor (5 commits)")[![diegomosela](https://avatars.githubusercontent.com/u/755407?v=4)](https://github.com/diegomosela "diegomosela (4 commits)")[![diegoscaffold](https://avatars.githubusercontent.com/u/47030101?v=4)](https://github.com/diegoscaffold "diegoscaffold (1 commits)")[![vitoresposito-scaffold](https://avatars.githubusercontent.com/u/66846250?v=4)](https://github.com/vitoresposito-scaffold "vitoresposito-scaffold (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/scaffoldeducation-jwt-manager-php/health.svg)

```
[![Health](https://phpackages.com/badges/scaffoldeducation-jwt-manager-php/health.svg)](https://phpackages.com/packages/scaffoldeducation-jwt-manager-php)
```

PHPackages © 2026

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