PHPackages                             tje3d/html-minify - 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. [Templating &amp; Views](/categories/templating)
4. /
5. tje3d/html-minify

ActiveLibrary[Templating &amp; Views](/categories/templating)

tje3d/html-minify
=================

Minifies the HTML output of Laravel 5 applications (Originally from https://github.com/fitztrev/laravel-html-minify)

1.0.1(9y ago)088MITPHPPHP &gt;=5.6.0

Since May 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tje3d/html-minify)[ Packagist](https://packagist.org/packages/tje3d/html-minify)[ Docs](https://github.com/tje3d/html-minify)[ RSS](/packages/tje3d-html-minify/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel 5 HTML Minify
=====================

[](#laravel-5-html-minify)

`This package is originally from https://github.com/fitztrev/laravel-html-minify i just updated the package and made it compatible with laravel 5`, And i forked and make it simple 😁

About
-----

[](#about)

This package compresses the HTML output from your Laravel 5 application, seamlessly reducing the overall response size of your pages.

Other scripts that I've seen will compress the HTML output on-the-fly for each request. Instead, this package extends the Blade compiler to save the compiled template files to disk in their compressed state, reducing the overhead for each request.

Why?
----

[](#why)

Even with gzip enabled, there is still an improvement in the response size for HTML content-type documents.

Test Pagew/o Gzipw/ Gzipw/ Gzip + Laravel HTML Minify**\#1**8,039 bytes1,944 bytes**1,836 bytes** (5.6% improvement)**\#2**377,867 bytes5,247 bytes**4,314 bytes** (17.8% improvement)Installation
------------

[](#installation)

1. composer require tje3d/html-minify
2. Add `Tje3d\HtmlMinify\HtmlMinifyServiceProvider::class` to the list of providers in **config/app.php**.
3. Publish your config with `php artisan vendor:publish` command
4. php artisan view:clear

### Options

[](#options)

- **`enabled`** - *boolean*, default **true**

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

Unknown

Total

1

Last Release

3349d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73386c7e0e78428da63e62e1a61f1a1dab64261be3a38022d1d88fedcfbf90eb?d=identicon)[tje3d](/maintainers/tje3d)

---

Top Contributors

[![yocmen](https://avatars.githubusercontent.com/u/11200640?v=4)](https://github.com/yocmen "yocmen (6 commits)")[![moeinporkamel](https://avatars.githubusercontent.com/u/202500882?v=4)](https://github.com/moeinporkamel "moeinporkamel (4 commits)")

---

Tags

laravelperformancehtmlminifyminifierbladecompressoptimizationl5

### Embed Badge

![Health badge](/badges/tje3d-html-minify/health.svg)

```
[![Health](https://phpackages.com/badges/tje3d-html-minify/health.svg)](https://phpackages.com/packages/tje3d-html-minify)
```

###  Alternatives

[fitztrev/laravel-html-minify

Minifies the HTML output of Laravel 4 applications

415213.2k](/packages/fitztrev-laravel-html-minify)[yocmen/html-minify

Minifies the HTML output of Laravel 5 applications (Originally from https://github.com/fitztrev/laravel-html-minify)

1613.7k](/packages/yocmen-html-minify)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[moonshine/moonshine

Laravel administration panel

1.3k253.1k78](/packages/moonshine-moonshine)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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