PHPackages                             tposcic/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. tposcic/laravel-passport-cache-token

ActiveLibrary[Caching](/categories/caching)

tposcic/laravel-passport-cache-token
====================================

Make laravel/passport token cacheable. Fork from https://github.com/overtrue/laravel-passport-cache-token

2.2.1(4y ago)0325MITPHP

Since Jun 8Pushed 4y agoCompare

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

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

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

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

Make [laravel/passport](https://github.com/laravel/passport) token cacheable.

Installing
----------

[](#installing)

```
$ composer require tposcic/laravel-passport-cache-token
```

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_',

        // 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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% 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 ~91 days

Recently: every ~82 days

Total

6

Last Release

1707d ago

Major Versions

1.0.0 → 2.0.02020-10-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/56937e7e48b02825d91caa5c78ca00d3ec605e8bac89662eace0b90eacf66b7b?d=identicon)[tposcic](/maintainers/tposcic)

---

Top Contributors

[![overtrue](https://avatars.githubusercontent.com/u/1472352?v=4)](https://github.com/overtrue "overtrue (16 commits)")[![JimChenWYU](https://avatars.githubusercontent.com/u/12371374?v=4)](https://github.com/JimChenWYU "JimChenWYU (7 commits)")[![tposcic](https://avatars.githubusercontent.com/u/6363042?v=4)](https://github.com/tposcic "tposcic (2 commits)")[![oniz93](https://avatars.githubusercontent.com/u/1055434?v=4)](https://github.com/oniz93 "oniz93 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/tposcic-laravel-passport-cache-token/health.svg)](https://phpackages.com/packages/tposcic-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)
