abordage/laravel-html-min
Laravel HTML Min is a lightweight middleware package that compresses your application's HTML output by stripping whitespace, comments, and redundant markup. Reduce page size and speed up load times with zero template changes—just install and enable it.
App\Http\Middleware. The 1.0.0 tag is the signal that tips this decision — a semver-stable contract means you can depend on it in a long-lived codebase without budgeting for churn.<br /> vs <br>) turns an implicit output convention into an explicit, configurable product decision. This matters if you emit HTML for consumers with strict parsing expectations — transactional email templates, XHTML-leaning downstream systems, feed/AMP outputs, or snapshot tests that diff rendered markup.Adopt when most of the following hold:
<pre>, <textarea>, <script>, inline white-space: pre blocks) that this package has already absorbed.Look elsewhere or skip when:
Also worth a pre-adoption check: confirm the trailing-slash behavior defaults to your current output so the upgrade from 0.2.x to 1.0.0 doesn't silently change rendered markup and break HTML assertions or downstream consumers.
To executives: A mature, single-purpose Laravel package that shrinks every HTML page we serve before it leaves the server. It has just reached a stable 1.0 release, which means we can adopt it without carrying maintenance risk. It's a low-cost, low-risk increment to page performance and a de-risked alternative to building and owning the same logic ourselves.
To engineering: abordage/laravel-html-min 1.0.0 is a middleware-based HTML minifier for Blade output. The 1.0 tag is a semver stability commitment, and the headline change — configurable removal of trailing slashes from void elements — gives us explicit control over output markup dialect instead of inheriting whatever the library decides. Integration is one middleware registration plus a published config file. Scope is intentionally narrow: it does one thing and composes cleanly with compression and caching rather than competing with them. Recommend a short trial behind config on a low-traffic route, verifying HTML snapshot tests still pass, before global rollout.
How can I help you explore Laravel packages today?