PHPackages                             oxhq/cachelet-model - 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. [Database &amp; ORM](/categories/database)
4. /
5. oxhq/cachelet-model

ActiveLibrary[Database &amp; ORM](/categories/database)

oxhq/cachelet-model
===================

Eloquent model integration for Cachelet.

v0.3.1(2mo ago)041MITPHPPHP ^8.2

Since Apr 21Pushed 2mo agoCompare

[ Source](https://github.com/oxhq/cachelet-model)[ Packagist](https://packagist.org/packages/oxhq/cachelet-model)[ Docs](https://github.com/oxhq/cachelet)[ RSS](/packages/oxhq-cachelet-model/feed)WikiDiscussions main Synced 3w ago

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

cachelet-model
==============

[](#cachelet-model)

Eloquent model caching with Cachelet coordinates.

`cachelet-model` gives model-derived cache entries a stable module identity, inspectable key payloads, and observer-driven invalidation for model cache families.

Install
-------

[](#install)

```
composer require oxhq/cachelet-model
```

Best Fit
--------

[](#best-fit)

Use this package when stale model variants and invalidation blast radius are the main pain.

It provides:

- `Cachelet::forModel(...)`
- `$model->cachelet()`
- `only(...)`, `exclude(...)`, `withDates()`, and `withTimestamps()`
- observer-driven invalidation for model prefixes
- canonical `module = model` coordinates and telemetry

Example
-------

[](#example)

```
use Oxhq\Cachelet\Traits\UsesCachelet;

class User extends Model
{
    use UsesCachelet;
}

$profile = $user->cachelet()
    ->exclude(['updated_at'])
    ->ttl(300)
    ->remember(fn () => $user->fresh());
```

Docs
----

[](#docs)

- [`../../docs/operations.md`](../../docs/operations.md)
- [`../../docs/migration.md`](../../docs/migration.md)
- [`../../docs/install-matrix.md`](../../docs/install-matrix.md)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance86

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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

Total

6

Last Release

71d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

cachecacheletlaravellaraveleloquentcacheswrinvalidationmodel-cache

### Embed Badge

![Health badge](/badges/oxhq-cachelet-model/health.svg)

```
[![Health](https://phpackages.com/badges/oxhq-cachelet-model/health.svg)](https://phpackages.com/packages/oxhq-cachelet-model)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M98](/packages/mongodb-laravel-mongodb)[prettus/l5-repository

Laravel 8|9|10|11|12|13 - Repositories to the database layer

4.3k11.3M157](/packages/prettus-l5-repository)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

592456.3k2](/packages/spiritix-lada-cache)[kirkbushell/eloquence

A set of extensions adding additional functionality and consistency to Laravel's awesome Eloquent library.

5751.0M1](/packages/kirkbushell-eloquence)[ymigval/laravel-model-cache

Laravel package for caching Eloquent model queries

7962.6k4](/packages/ymigval-laravel-model-cache)

PHPackages © 2026

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