PHPackages                             mmnow/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mmnow/laravel-html-minify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mmnow/laravel-html-minify
=========================

laravel minify html output

00PHP

Since Aug 21Pushed 8mo agoCompare

[ Source](https://github.com/engamrhassan/lara-miniy-html)[ Packagist](https://packagist.org/packages/mmnow/laravel-html-minify)[ RSS](/packages/mmnow-laravel-html-minify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Laravel HTML Minifier
=====================

[](#laravel-html-minifier)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c4aaf4e35e160b9aff37ea1e74a1ffc7f91b064fce6ba81291cf8be2bc7fb17b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6d6e6f772f6c61726176656c2d68746d6c2d6d696e6966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mmnow/laravel-html-minify)[![Build Status](https://camo.githubusercontent.com/5858499faa5d07ed5560fdbdc74efc6cd41cb10a71e4db130d1623b2fac25826/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d6d6e6f772f6c61726176656c2d68746d6c2d6d696e6966792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mmnow/laravel-html-minify)[![Quality Score](https://camo.githubusercontent.com/866bc4da2226c2ba650cba7a6c97105a012fd90149749a9f24f8c1624f782747/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d6d6e6f772f6c61726176656c2d68746d6c2d6d696e6966792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mmnow/laravel-html-minify)[![Total Downloads](https://camo.githubusercontent.com/28e29db3aad6f6cb527e516c5b32aba80a5a071b47af1efb4fd91e17d8152c12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6d6e6f772f6c61726176656c2d68746d6c2d6d696e6966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mmnow/laravel-html-minify)

This package helps to minify your project`s html (blade file) output.

### Requirements

[](#requirements)

LaravelPackage5.x to 9.x2.x10.0 to 11.x3.xInstallation
------------

[](#installation)

You can install the package via composer:

```
composer require mmnow/laravel-html-minify
```

Sponsor Laravel HTML Minifier on GitHub
---------------------------------------

[](#sponsor-laravel-html-minifier-on-github)

[Become a sponsor to Dipesh Sukhia ](https://github.com/sponsors/mmnow).

Usage
-----

[](#usage)

```
php artisan vendor:publish --tag=LaravelHtmlMinify

you should add middleware to your web middleware group within your app/Http/Kernel.php file:
use mmnow\LaravelHtmlMinify\Middleware\LaravelMinifyHtml;
LaravelMinifyHtml::class

add in env
for enable
HTML_MINIFY = true
for disable
HTML_MINIFY = false

exclude route name for exclude from minify
'exclude_route' => [
        // 'routeName'
]

for particular html part
LaravelHtmlMinifyFacade::htmlMinify("...");
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Dipesh Sukhia](https://github.com/mmnow)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance42

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c3c076f9d09e644911e7ff7cf474db03084b27879759b088ca53b6a9c00a82cf?d=identicon)[engamrhassan](/maintainers/engamrhassan)

---

Top Contributors

[![finerteam](https://avatars.githubusercontent.com/u/39619554?v=4)](https://github.com/finerteam "finerteam (7 commits)")[![amralihasan](https://avatars.githubusercontent.com/u/214485727?v=4)](https://github.com/amralihasan "amralihasan (5 commits)")[![amralihassan](https://avatars.githubusercontent.com/u/22858994?v=4)](https://github.com/amralihassan "amralihassan (3 commits)")

### Embed Badge

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

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

###  Alternatives

[mmanos/laravel-casset

An asset management package for Laravel 4.

112.6k](/packages/mmanos-laravel-casset)

PHPackages © 2026

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