PHPackages                             quangdung93/jwt-redis - 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. quangdung93/jwt-redis

ActiveLibrary

quangdung93/jwt-redis
=====================

This package to add JSON Web Token to Redis

1.0.3(4y ago)011MITPHP

Since Sep 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/quangdung93/jwt-redis)[ Packagist](https://packagist.org/packages/quangdung93/jwt-redis)[ Docs](https://github.com/spatie/laravel-permission)[ RSS](/packages/quangdung93-jwt-redis/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Install
-------

[](#install)

```
composer require quangdung93/jwt-redis
```

Publish config
--------------

[](#publish-config)

```
php artisan vendor:publish --provider="Ajax\JwtRedis\JwtRedisServiceProvider"
```

Config
------

[](#config)

`config/jwt_redis.php`

```
//Limit the number of tokens stored in redis
'limit_token' => 5,

//The keys in the payload are used to hash session_id
'key_payload_hash' => [
    'imei',
    'user_id'
],

// Except route affected by middleware
'route_except' => [
    'api/login'
]
```

Use
---

[](#use)

```
// use Ajax\JwtRedis\Facades\JwtRedis;

$imei = '123';
$user_id = '1';

$params = [$imei, $user_id];

//$params is array include key payload used to hash to session_id

// Save token to redis
JwtRedis::set($token, $params)

//Get token
JwtRedis::get($params)

//Check token exists in Redis
JwtRedis::check($token, $params)
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

4

Last Release

1707d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/554a8db5f105659759873a64df5874cd5a3c96d5c5f2819cd5567678ef7157c3?d=identicon)[ajax](/maintainers/ajax)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/quangdung93-jwt-redis/health.svg)

```
[![Health](https://phpackages.com/badges/quangdung93-jwt-redis/health.svg)](https://phpackages.com/packages/quangdung93-jwt-redis)
```

PHPackages © 2026

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