PHPackages                             oxhq/cachelet-request - 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. oxhq/cachelet-request

ActiveLibrary[Caching](/categories/caching)

oxhq/cachelet-request
=====================

Request and response caching integration for Cachelet.

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

Since Apr 21Pushed 2mo agoCompare

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

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

cachelet-request
================

[](#cachelet-request)

Route response caching with explicit vary dimensions and Cachelet coordinates.

`cachelet-request` turns response caches into inspectable request-family entries with route metadata, vary inputs, namespace invalidation, and safe bypass behavior.

Install
-------

[](#install)

```
composer require oxhq/cachelet-request
```

Best Fit
--------

[](#best-fit)

Use this package when route responses are expensive, cacheable, and need explicit vary rules.

It provides:

- route `->cachelet()` integration
- middleware-driven response caching
- vary by query string, headers, locale, and authenticated user
- namespace invalidation for request caches
- bypass behavior for streamed, binary, and non-cacheable responses
- canonical `module = request` coordinates and telemetry

Example
-------

[](#example)

```
Route::get('/users', UserIndexController::class)
    ->name('users.index')
    ->cachelet(600, [
        'vary' => ['query' => true, 'auth' => true],
        'namespace' => 'users',
    ]);
```

Contract
--------

[](#contract)

Defaults in `0.2.x`:

- cacheable methods: `GET`, `HEAD`
- cacheable statuses: `200`
- streamed and binary responses are bypassed
- non-cacheable SWR refresh callbacks preserve the last good cacheable payload

Docs
----

[](#docs)

- [`../../docs/operations.md`](../../docs/operations.md)
- [`../../docs/operator-questions.md`](../../docs/operator-questions.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 ~4 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 (5 commits)")

---

Tags

cachecacheletlaravelmiddlewarelaravelcacheswrinvalidationresponse-cache

### Embed Badge

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

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

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M136](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M133](/packages/roots-acorn)[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k11.8M118](/packages/nuwave-lighthouse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M186](/packages/laravel-mcp)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)

PHPackages © 2026

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