graham-campbell/htmlmin
Laravel wrapper around HTMLMin that compresses your app's HTML output on the fly, stripping comments and unnecessary whitespace. Integrates via service provider and facade, and can be applied globally or to specific responses to shrink page size and speed up delivery.
<pre>/<textarea> handling, inline <script>/<style> safety, and Blade compiler interaction — permanent maintenance burden for a non-differentiating optimization. This package wraps the well-tested mrclay/minify library behind one middleware.<pre> blocks, code samples, <textarea>, inline <script>/<style>, or template directives embedded in attributes (Alpine x-*, Vue mustaches, HTMX). These are silent-corruption risks: no server-side error, no log line, just a subtly broken page.9.0.1 through the validation window rather than using a caret range, and inspect maintenance signals (release cadence, issue response, declared PHP/Laravel floor) directly.mrclay/minify library. Integration is a Composer require plus one middleware registration (named alias for route scoping) and an optional published config. v9.0.1 fixes an unintended view-resolution side effect in the Blade compiler integration and hardens CI. Plan: pin the version, diff output byte-for-byte against a curated page set in staging, then canary on a low-risk route group."<pre> blocks, rich text) and inline template directives during rollout. Expect zero user-visible difference beyond faster loads."php artisan config:clear — in the runbook so a layout regression is a toggle, not a rollback."How can I help you explore Laravel packages today?