PHPackages                             mscharl/laravel-static-html-cache - 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. mscharl/laravel-static-html-cache

AbandonedArchivedLibrary[Caching](/categories/caching)

mscharl/laravel-static-html-cache
=================================

store/cache generated responses as a static file

v1.1(8y ago)05.5k1MITPHPPHP &gt;=7.0

Since Apr 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mscharl/laravel-static-html-cache)[ Packagist](https://packagist.org/packages/mscharl/laravel-static-html-cache)[ RSS](/packages/mscharl-laravel-static-html-cache/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

laravel-static-html-cache
=========================

[](#laravel-static-html-cache)

> store/cache generated responses as a static file

Setup
-----

[](#setup)

Add the service provider to the `config/app.php` provider array

```
MScharl\LaravelStaticHtmlCache\Provider\LaravelStaticHtmlCacheProvider::class,
```

Then add the middleware to the end of your `Http/Kernel.php` middleware array.

```
protected $middleware = [
   \MScharl\LaravelStaticHtmlCache\Http\Middleware\LaravelStaticHtmlCacheMiddleware::class,
];
```

Add the following snippet into your `.htaccess`

```
# Rewrite to html cache if it exists and the request is off a static page
# (no url query params and only get requests)
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{DOCUMENT_ROOT}/cache/html%{REQUEST_URI}/index.html -f
RewriteRule ^(.*)$ /cache/html%{REQUEST_URI}/index.html [L]

```

Clear the files
---------------

[](#clear-the-files)

To clear all the files manually you can use an artisan task.

```
php artisan static-html-cache:clear
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7af58327f55f1ab0dc0316078598b84b7f1831b8fc00326804078c3888b2f5e0?d=identicon)[mscharl](/maintainers/mscharl)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mscharl-laravel-static-html-cache/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77018.2M122](/packages/laravel-mcp)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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