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 1mo ago

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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

1520d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e042e1af2f199af0219d31b29b688226027d5ead0913f6e5a148959661d4f9b?d=identicon)[fatihozpolat](/maintainers/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.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)

PHPackages © 2026

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