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 2w 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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2278d 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)")[![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

[illuminate/session

The Illuminate Session package.

9938.5M823](/packages/illuminate-session)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

635.5M36](/packages/symfony-ux-autocomplete)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)[numero2/contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data

121.6k](/packages/numero2-contao-storelocator)

PHPackages © 2026

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