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

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

0x1881/laravel-html-minify
==========================

laravel html minify with regex

2.4.1(2y ago)1196MITPHPPHP &gt;=5.5.9

Since May 5Pushed 2y agoCompare

[ Source](https://github.com/0x1881/laravel-html-minify)[ Packagist](https://packagist.org/packages/0x1881/laravel-html-minify)[ Docs](https://github.com/0X1881/laravel-html-minify)[ GitHub Sponsors](https://github.com/0x1881)[ RSS](/packages/0x1881-laravel-html-minify/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

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

[](#laravel-html-minifier)

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

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

[](#installation)

You can install the package via composer:

```
composer require 0x1881/laravel-html-minify
```

Usage
-----

[](#usage)

Publish the config file if the defaults doesn't suite your needs:

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

The following config file will be published in config/laravel-html-minify.php

```
return [
    'enable' => env('LARAVEL_HTML_MINIFY', true),

    'skip_route' => [
        'dashboard',
        'dashboard.*',
    ],

    'skip_path' => [
        'admin',
        'admin/*',
    ],
];
```

You should add middleware to your web middleware group within your app/Http/Kernel.php file:

```
\C4N\LaravelHtmlMinify\Middlewares\LaravelHtmlMinify::class
```

Add in ENV

```
LARAVEL_HTML_MINIFY=true

```

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

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~62 days

Total

5

Last Release

854d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8572d6ac4040aec0aade337de59e2f86d0598fb7b99f6393243bd3fa42a22ef?d=identicon)[0x1881](/maintainers/0x1881)

---

Top Contributors

[![0x1881](https://avatars.githubusercontent.com/u/86019030?v=4)](https://github.com/0x1881 "0x1881 (13 commits)")[![dipeshsukhia](https://avatars.githubusercontent.com/u/34036367?v=4)](https://github.com/dipeshsukhia "dipeshsukhia (12 commits)")[![bhavingajjar](https://avatars.githubusercontent.com/u/11258397?v=4)](https://github.com/bhavingajjar "bhavingajjar (2 commits)")[![genericmilk](https://avatars.githubusercontent.com/u/1846127?v=4)](https://github.com/genericmilk "genericmilk (1 commits)")

---

Tags

laravellaravel-html-minify0x1881

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/0x1881-laravel-html-minify/health.svg)](https://phpackages.com/packages/0x1881-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)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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