PHPackages                             morimorim/laravel-cache-attr - 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. morimorim/laravel-cache-attr

ActiveLibrary[Caching](/categories/caching)

morimorim/laravel-cache-attr
============================

Attribute for cache

0.0.4(1y ago)0117MITPHPPHP &gt;=8.2

Since Oct 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/moririnson/laravel-cache-attr)[ Packagist](https://packagist.org/packages/morimorim/laravel-cache-attr)[ RSS](/packages/morimorim-laravel-cache-attr/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Laravel Cache Attr
==================

[](#laravel-cache-attr)

This is package of attributes for Laravel. Supported attributes are here.

- [Cacheable](./src/Attributes/Cacheable.php)

See also [example](./example/).

Install
-------

[](#install)

```
composer require morimorim/laravel-cache-attr
```

Usage
-----

[](#usage)

Specify attributes like following.

```
use Laravel\Cache\Attribute\Cacheable;

class ExampleService
{
    #[Cacheable(name: 'ExampleService#heavyProcess', ttl_seconds: 60)]
    public function heavyProcess(int $sleep)
    {
        sleep($sleep);
        return Carbon::now();
    }
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

4

Last Release

706d ago

PHP version history (2 changes)0.0.1PHP ^8.2

0.0.4PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16463693?v=4)[moririnson](/maintainers/moririnson)[@moririnson](https://github.com/moririnson)

---

Top Contributors

[![moririnson](https://avatars.githubusercontent.com/u/16463693?v=4)](https://github.com/moririnson "moririnson (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/morimorim-laravel-cache-attr/health.svg)

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[genealabs/laravel-model-caching

Automatic caching for Eloquent models.

2.4k4.8M26](/packages/genealabs-laravel-model-caching)[mikebronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k127.1k1](/packages/mikebronner-laravel-model-caching)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[laragear/cache-query

Remember your query results using only one method. Yes, only one.

272122.8k](/packages/laragear-cache-query)[namoshek/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis master through Redis Sentinel.

38679.0k](/packages/namoshek-laravel-redis-sentinel)

PHPackages © 2026

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