PHPackages                             fatihozpolat/jwtvalidity - 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. fatihozpolat/jwtvalidity

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

fatihozpolat/jwtvalidity
========================

v1.0.5(4y ago)273MITPHP

Since Oct 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fatihozpolat/JWTValidity)[ Packagist](https://packagist.org/packages/fatihozpolat/jwtvalidity)[ RSS](/packages/fatihozpolat-jwtvalidity/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (7)Used By (0)

JWT Validity
============

[](#jwt-validity)

JWT Validity, Laravel tymon/jwt için geliştirilmiş `database token storage` ve `yönetimini` içerir.

Kurulum
-------

[](#kurulum)

```
composer require fatihozpolat/jwtvalidity
```

komutunu çalıştırarak paketi kurun.

config/jwt.php dosyasındaki:

```
'storage' => Tymon\JWTAuth\Providers\Storage\Illuminate::class,
```

satırını:

```
'storage' => FatihOzpolat\JWTValidity\Repository\JwtBlockedStorageRepository::class,
```

satırı ile değiştirin.

#### App\\Models\\User.php ya da Authenticatable olan her hangi bir model

[](#appmodelsuserphp-ya-da-authenticatable-olan-her-hangi-bir-model)

```
use FatihOzpolat\JWTValidity\User as FOUser;
...
...

class User extends FOUser
{
  ...
```

#### Auth Controller

[](#auth-controller)

```
use FatihOzpolat\JWTValidity\Manager;
...
...

//login
if($token = auth()->attempt($credentials)){
  Manager::addToken($token);
  ...
  ...

//logout
$authHeader = request()->header('authorization');
$token = substr($authHeader, 7); //remove Bearer
Manager::removeToken($token);
```

#### Bir kullanıcya ait tüm tokenleri engellemek için

[](#bir-kullanıcya-ait-tüm-tokenleri-engellemek-için)

```
$user = User::find(1);
$res = Manager::blockTokens($user); //true or false
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~37 days

Total

6

Last Release

1568d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37903778?v=4)[Fatih Özpolat](/maintainers/fatihozpolat)[@fatihozpolat](https://github.com/fatihozpolat)

---

Top Contributors

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

---

Tags

jwtlaravelauthAuthenticationJSON Web Tokendatabase storagejwt database

### Embed Badge

![Health badge](/badges/fatihozpolat-jwtvalidity/health.svg)

```
[![Health](https://phpackages.com/badges/fatihozpolat-jwtvalidity/health.svg)](https://phpackages.com/packages/fatihozpolat-jwtvalidity)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.7k51.8M370](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84611.1M63](/packages/php-open-source-saver-jwt-auth)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6783.6k6](/packages/hasinhayder-tyro)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2014.5k](/packages/alajusticia-laravel-logins)

PHPackages © 2026

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