PHPackages                             megaads-vn/laravel-minify-html - 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. megaads-vn/laravel-minify-html

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

megaads-vn/laravel-minify-html
==============================

Minifies the HTML output of Laravel 4 applications

1.0.5(5y ago)4383MITPHPCI failing

Since Nov 15Pushed 5y ago5 watchersCompare

[ Source](https://github.com/megaads-vn/laravel-minify-html)[ Packagist](https://packagist.org/packages/megaads-vn/laravel-minify-html)[ Docs](https://github.com/megaads-vn/laravel-minify-html)[ RSS](/packages/megaads-vn-laravel-minify-html/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

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

[](#laravel-html-minify)

### For Laravel 4

[](#for-laravel-4)

About
-----

[](#about)

This package compresses the HTML output from your Laravel 4 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.

Installation
------------

[](#installation)

1. Add `"megaads-vn/laravel-minify-html":  "1.*"` to **composer.json**.
2. Run `composer update`

```
    Or can using command composer require megaads-vn/laravel-minify-html

```

3. Add `MegaAds\LaravelHtmlMinify\LaravelHtmlMinifyServiceProvider` to the list of providers in **app/config/app.php**.
4. **Important:** You won't see any changes until you edit your `*.blade.php` template files. Once Laravel detects a change, it will recompile them, which is when this package will go to work. To force all views to be recompiled, just run this command: `find . -name "*.blade.php" -exec touch {} \;`

Config
------

[](#config)

Optionally, you can choose to customize how the minifier functions for different environments. Publish the configuration file and edit accordingly.

```
$ php artisan config:publish megaads-vn/laravel-minify-html

```

### Options

[](#options)

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

If you are using a javascript framework that conflicts with Blade's tags, you can change them.

- **`blade.contentTags`** - *array*, default `[[]]` and `]]`
- **`blade.escapedContentTags`** - *array*, default `[[[` and `]]]`

#### Skipping minification

[](#skipping-minification)

To prevent the minification of a view file, add `skipmin` somewhere in the view.

```
[[-- skipmin --]]

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

4

Last Release

2177d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17486691?v=4)[MegaAds.vn](/maintainers/megaads-vn)[@megaads-vn](https://github.com/megaads-vn)

---

Top Contributors

[![bachnx23](https://avatars.githubusercontent.com/u/7134491?v=4)](https://github.com/bachnx23 "bachnx23 (24 commits)")

---

Tags

laravelperformancehtmlminifyminifierbladecompressoptimizationL4

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/megaads-vn-laravel-minify-html/health.svg)

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

###  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)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.3k449.3k30](/packages/tightenco-jigsaw)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[spatie/laravel-blade-comments

Add debug comments to your rendered output

179332.0k](/packages/spatie-laravel-blade-comments)[hasinhayder/tyro-dashboard

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

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

PHPackages © 2026

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