PHPackages                             miljan9602/laravel-passport-cache-token - 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. [Caching](/categories/caching)
4. /
5. miljan9602/laravel-passport-cache-token

ActiveLibrary[Caching](/categories/caching)

miljan9602/laravel-passport-cache-token
=======================================

Make laravel/passport token cacheable.

v1.0(5y ago)03MITPHP

Since Jun 8Pushed 5y agoCompare

[ Source](https://github.com/Miljan9602/laravel-passport-cache-token)[ Packagist](https://packagist.org/packages/miljan9602/laravel-passport-cache-token)[ Fund](https://www.easywechat.com/img/pay/wechat.jpg)[ GitHub Sponsors](https://github.com/)[ RSS](/packages/miljan9602-laravel-passport-cache-token/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (7)Versions (2)Used By (0)

Laravel Passport Cache Token
============================

[](#laravel-passport-cache-token)

 Make laravel/passport token cacheable..

Installing
----------

[](#installing)

```
$ composer require overtrue/laravel-passport-cache-token -vvv
```

Usage
-----

[](#usage)

Thanks to Laravel's automatic package discovery mechanism, you don't need to do any additional operations.

Of course, you can also control the cache strategy freely, just need to configure the following in the configuration file:

//config/passport.php

```
return [
    //...
    'cache' => [
        // Cache key prefix
        'prefix' => 'passport_token_',

        // The lifetime of token cache,
        // Unit: second
        'expires_in' => 300,

        // Cache tags
        'tags' => [],
    ],
];
```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/overtrue/laravel-passport-cache-token/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/overtrue/laravel-passport-cache-token/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

Unknown

Total

1

Last Release

2165d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd248f5852907c572575507ff617416e5439bfcc481bd981406919615887539c?d=identicon)[Miljan9602](/maintainers/Miljan9602)

---

Top Contributors

[![overtrue](https://avatars.githubusercontent.com/u/1472352?v=4)](https://github.com/overtrue "overtrue (5 commits)")[![Miljan9602](https://avatars.githubusercontent.com/u/19391119?v=4)](https://github.com/Miljan9602 "Miljan9602 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/miljan9602-laravel-passport-cache-token/health.svg)

```
[![Health](https://phpackages.com/badges/miljan9602-laravel-passport-cache-token/health.svg)](https://phpackages.com/packages/miljan9602-laravel-passport-cache-token)
```

###  Alternatives

[swayok/alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea. Powered by cache pool implementations provided by http://www.php-cache.com/

202541.1k6](/packages/swayok-alternative-laravel-cache)[alexmg86/laravel-sub-query

Laravel subquery

7538.4k](/packages/alexmg86-laravel-sub-query)[byerikas/cache-tags

Allows for Redis/Valkey cache flushing multiple tagged items by a single tag.

1413.9k](/packages/byerikas-cache-tags)

PHPackages © 2026

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