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 3w 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 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

1758d 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

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

59437.0k9](/packages/jeremy379-laravel-openid-connect)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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