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

ActiveLibrary

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 today

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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

2230d ago

### Community

Maintainers

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

### 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

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.5k9.4M48](/packages/laravel-reverb)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[api-platform/http-cache

API Platform HttpCache component

223.2M7](/packages/api-platform-http-cache)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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