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

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

eolme/laravel-minify-html
=========================

Minify your responses in Laravel

3.0.0(6y ago)0371MITPHPPHP ^7.0

Since Apr 3Pushed 6y agoCompare

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

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

HTML minifier
=============

[](#html-minifier)

Introduction
------------

[](#introduction)

Very, very simple html minifier with Laravel 5.x support.

It *minifies* HTML by

1. removing HTML comments except IE conditions
2. removing comments
3. shorten multiple white spaces
4. removing whitespaces between HTML tags
5. collapsing new lines

You should end up with a small size profit:

UniminfiedMinified64.2KB44.6KBCode Samples
------------

[](#code-samples)

```
$input = "Hello World";
$minifier = new Minifier();
$output = $minifier->html($string); // Hello World
```

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

[](#installation)

You can install the package via composer:

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

If you are using Laravel you can add the middleware to your middleware providers

```
// app/Http/Kernel.php
/**
 * The application's global HTTP middleware stack.
 *
 * @var array
 */
protected $middleware = [
    ...
    \Eolme\Minify\Middleware\MinifyResponse::class,
];
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2323d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11076888?v=4)[Anton Petrov](/maintainers/eolme)[@eolme](https://github.com/eolme)

---

Top Contributors

[![nckg](https://avatars.githubusercontent.com/u/360602?v=4)](https://github.com/nckg "nckg (9 commits)")[![gg4every-sudo](https://avatars.githubusercontent.com/u/298003945?v=4)](https://github.com/gg4every-sudo "gg4every-sudo (3 commits)")[![eolme](https://avatars.githubusercontent.com/u/11076888?v=4)](https://github.com/eolme "eolme (1 commits)")[![mezhevikin](https://avatars.githubusercontent.com/u/973364?v=4)](https://github.com/mezhevikin "mezhevikin (1 commits)")

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M418](/packages/easycorp-easyadmin-bundle)[illuminate/session

The Illuminate Session package.

9939.9M883](/packages/illuminate-session)[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

636.3M48](/packages/symfony-ux-autocomplete)[illuminate/cookie

The Illuminate Cookie package.

224.7M144](/packages/illuminate-cookie)[typo3/cms-install

TYPO3 CMS Install Tool - The Install Tool is used for installation, upgrade, system administration and setup tasks.

1812.5M573](/packages/typo3-cms-install)[api-platform/http-cache

API Platform HttpCache component

275.1M23](/packages/api-platform-http-cache)

PHPackages © 2026

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