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

ActiveLibrary

bakerysoft/laravel-html-minify
==============================

laravel minify html output

194↓100%2PHP

Since Feb 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/amralihassan/laravel-html-minify-fork)[ Packagist](https://packagist.org/packages/bakerysoft/laravel-html-minify)[ RSS](/packages/bakerysoft-laravel-html-minify/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

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

[](#laravel-html-minifier)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9dc69da44b2115d9f9381c154978dda377511328ee5ca2f44a0262a6f80a1d99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62616b657279736f66742f6c61726176656c2d68746d6c2d6d696e6966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bakerysoft/laravel-html-minify)[![Build Status](https://camo.githubusercontent.com/53df91f6d5da5281e00c88585f1586f3866829503a1ae7df5d632e07ec6126e5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f62616b657279736f66742f6c61726176656c2d68746d6c2d6d696e6966792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bakerysoft/laravel-html-minify)[![Quality Score](https://camo.githubusercontent.com/b31449dd9dbfc48dfa29e54dce4a99ff38913258a3c9eddfa6d918b22cdefd04/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f62616b657279736f66742f6c61726176656c2d68746d6c2d6d696e6966792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bakerysoft/laravel-html-minify)[![Total Downloads](https://camo.githubusercontent.com/8b8d586ca4aaf5d9f754289bf9c769ff89fb8ea32c413bfe48eb4abfb2ccaafb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616b657279736f66742f6c61726176656c2d68746d6c2d6d696e6966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bakerysoft/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 bakerysoft/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/bakerysoft).

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 bakerysoft\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/bakerysoft)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 16% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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