PHPackages                             janpapenbrock/php-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. janpapenbrock/php-html-minify

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

janpapenbrock/php-html-minify
=============================

Trim down your page size by minifying HTML.

v0.1-alpha(10y ago)1861MITPHPPHP &gt;=5.3

Since May 6Pushed 10y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

php-html-minify
===============

[](#php-html-minify)

Want whitespace-free HTML for lowest page size? Save your mobile visitors some bytes from their monthly bill.

Install
-------

[](#install)

This is available via composer:

```
"require": {
    "janpapenbrock/php-html-minify": "~1.0"
}

```

Usage
-----

[](#usage)

```
$minify = new janpapenbrock\HtmlMinify\HtmlMinify();
$minHtml = $minify->minify($html);

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

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

3709d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2108728?v=4)[Jan Papenbrock](/maintainers/janpapenbrock)[@janpapenbrock](https://github.com/janpapenbrock)

---

Top Contributors

[![janpapenbrock](https://avatars.githubusercontent.com/u/2108728?v=4)](https://github.com/janpapenbrock "janpapenbrock (5 commits)")

---

Tags

phpperformancehtmlminifyoptimizationsizewhitespace

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/janpapenbrock-php-html-minify/health.svg)

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

###  Alternatives

[fitztrev/laravel-html-minify

Minifies the HTML output of Laravel 4 applications

415213.2k](/packages/fitztrev-laravel-html-minify)[nilportugues/php_backslasher

Adds all PHP internal functions to its namespace by adding backslash to them. Improves the application's performance when OPCache is on.

889.3k20](/packages/nilportugues-php-backslasher)[christianklisch/slim-minify

Minify html output in slim framework

3732.0k1](/packages/christianklisch-slim-minify)[yocmen/html-minify

Minifies the HTML output of Laravel 5 applications (Originally from https://github.com/fitztrev/laravel-html-minify)

1613.7k](/packages/yocmen-html-minify)[frosh/platform-html-minify

This plugin delivers minified HTML and minified inline JavaScript to visitors.

1179.8k](/packages/frosh-platform-html-minify)[dorsetdigital/silverstripe-enhanced-requirements

Enhanced requirements for Silverstripe

118.4k4](/packages/dorsetdigital-silverstripe-enhanced-requirements)

PHPackages © 2026

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