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(2y ago)0117MITPHPPHP &gt;=8.2

Since Oct 11Pushed 2y 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 today

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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

757d 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.8k9.0M68](/packages/spatie-laravel-responsecache)[illuminate/cache

The Illuminate Cache package.

12937.0M1.8k](/packages/illuminate-cache)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k89.7k1](/packages/mike-bronner-laravel-model-caching)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21111.6k](/packages/iazaran-smart-cache)

PHPackages © 2026

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