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

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

signdeer/laravel-html-minify
============================

laravel minify html output

v1.0.2(10mo ago)0689MITPHPPHP &gt;=8.1

Since Jul 15Pushed 10mo agoCompare

[ Source](https://github.com/Signdeer/laravel-html-minify)[ Packagist](https://packagist.org/packages/signdeer/laravel-html-minify)[ Docs](https://github.com/Signdeer/laravel-html-minify)[ GitHub Sponsors](https://github.com/dipeshsukhia)[ RSS](/packages/signdeer-laravel-html-minify/feed)WikiDiscussions 3.x Synced 1mo ago

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

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

[](#laravel-html-minifier)

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

### Requirements

[](#requirements)

LaravelPackage5.x to 9.x2.x&gt;= 10.x3.xInstallation
------------

[](#installation)

You can install the package via composer:

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

Setup
-----

[](#setup)

### Generate Config

[](#generate-config)

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

### add middleware to web middleware group within app/Http/Kernel.php

[](#add-middleware-to-web-middleware-group-within-apphttpkernelphp)

```
\DipeshSukhia\LaravelHtmlMinify\Middleware\LaravelMinifyHtml::class
```

Usage
-----

[](#usage)

### for enable in env

[](#for-enable-in-env)

```
HTML_MINIFY=true
```

### for disable in env

[](#for-disable-in-env)

```
HTML_MINIFY=false
```

### exclude route name for from minify update config

[](#exclude-route-name-for-from-minify-update-config)

```
'exclude_route' => [
        // 'routeName'
]
```

### minify particular html part

[](#minify-particular-html-part)

```
LaravelHtmlMinifyFacade::htmlMinify("...");
```

### exclude minify particular html part

[](#exclude-minify-particular-html-part)

```
LaravelHtmlMinifyFacade::excludeHtmlMinify("...");
```

### exclude html minify in blade directory

[](#exclude-html-minify-in-blade-directory)

```
@excludeMinify
     exclude code from Minify
@endExcludeMinify
```

### 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  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Signdeer](https://github.com/Signdeer)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance55

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~0 days

Total

4

Last Release

302d ago

Major Versions

v1.0.1 → 3.x-dev2025-07-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/08ac11012b6b39a4a4c33676163235f9a8c007fbacc61e0a5d61a6134cc5a348?d=identicon)[Vincent95](/maintainers/Vincent95)

---

Top Contributors

[![dipeshsukhia](https://avatars.githubusercontent.com/u/34036367?v=4)](https://github.com/dipeshsukhia "dipeshsukhia (35 commits)")[![Vincent95](https://avatars.githubusercontent.com/u/14187746?v=4)](https://github.com/Vincent95 "Vincent95 (5 commits)")[![bhavingajjar](https://avatars.githubusercontent.com/u/11258397?v=4)](https://github.com/bhavingajjar "bhavingajjar (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![genericmilk](https://avatars.githubusercontent.com/u/1846127?v=4)](https://github.com/genericmilk "genericmilk (1 commits)")

---

Tags

dipeshsukhialaravel-html-minify

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[dipeshsukhia/laravel-country-state-city-data

Country State City Data Provider

8230.8k](/packages/dipeshsukhia-laravel-country-state-city-data)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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