PHPackages                             paramonovav/spress-html-compress - 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. paramonovav/spress-html-compress

AbandonedArchivedSpress-plugin[Utility &amp; Helpers](/categories/utility)

paramonovav/spress-html-compress
================================

Compress/minify your HTML

v2.0.5(5y ago)51603MITPHP

Since Feb 11Pushed 5y ago3 watchersCompare

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

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

Minify HTML
-----------

[](#minify-html)

[![Latest Stable Version](https://camo.githubusercontent.com/d8aaa7c5b29495a603343435c52c0f856c8bc73dca1df18b9fc75cb228811346/68747470733a2f2f706f7365722e707567782e6f72672f706172616d6f6e6f7661762f7370726573732d68746d6c2d636f6d70726573732f76)](//packagist.org/packages/paramonovav/spress-html-compress) [![Total Downloads](https://camo.githubusercontent.com/e55fe3f27ed6dd82df9da60e26d2e644c31a80caacaf3c3bcd854fe1d8bc286e/68747470733a2f2f706f7365722e707567782e6f72672f706172616d6f6e6f7661762f7370726573732d68746d6c2d636f6d70726573732f646f776e6c6f616473)](//packagist.org/packages/paramonovav/spress-html-compress) [![Latest Unstable Version](https://camo.githubusercontent.com/bf3c70b9487d217e4e557e9421d85a8e9d39e8417e9507dae2ec3a5c40eaf593/68747470733a2f2f706f7365722e707567782e6f72672f706172616d6f6e6f7661762f7370726573732d68746d6c2d636f6d70726573732f762f756e737461626c65)](//packagist.org/packages/paramonovav/spress-html-compress) [![License](https://camo.githubusercontent.com/fe891ec4589c7002a57895cb8169fc8fd119721bb493fbaa86117c8688e31900/68747470733a2f2f706f7365722e707567782e6f72672f706172616d6f6e6f7661762f7370726573732d68746d6c2d636f6d70726573732f6c6963656e7365)](//packagist.org/packages/paramonovav/spress-html-compress)[![Spress 2 ready](https://camo.githubusercontent.com/c561b5ab66f0296c37bc409f8a6a49fffb49b600c4341ff8df52ebbc742c40ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537072657373253230322d72656164792d627269676874677265656e2e737667)](https://camo.githubusercontent.com/c561b5ab66f0296c37bc409f8a6a49fffb49b600c4341ff8df52ebbc742c40ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537072657373253230322d72656164792d627269676874677265656e2e737667)

Compress/minify your HTML

### How to install?

[](#how-to-install)

Go to your Spress site and add the following to your `composer.json` and run `composer update`:

```
"require": {
    "paramonovav/spress-html-compress": "2.0.*"
}
```

### How to use?

[](#how-to-use)

Add the following to your config.yml to exclude some files from minify/compress process:

```
html_compress_exclude: ['.htaccess','robots.txt','crossdomain.xml', 'sitemap.xml','nortonsw_bc7be3d0-796e-0.html','BingSiteAuth.xml']
html_compress_exclude_pattern: '/(.*)?\.(jpe?g|png|gif|ico|svg|psd|tiff|webm|mov|avi|mkv|mp4|eot|ttf|otf|woff|woff2|webp)$/i'
```

Just run build command:

```
spress site:build
```

If you want to disable compression use the following config

```
html_compress: false
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

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

Every ~539 days

Total

4

Last Release

2173d ago

### Community

Maintainers

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

---

Top Contributors

[![paramonovav](https://avatars.githubusercontent.com/u/607431?v=4)](https://github.com/paramonovav "paramonovav (11 commits)")[![dkrnl](https://avatars.githubusercontent.com/u/734622?v=4)](https://github.com/dkrnl "dkrnl (2 commits)")[![loopion](https://avatars.githubusercontent.com/u/4337?v=4)](https://github.com/loopion "loopion (1 commits)")[![shdev](https://avatars.githubusercontent.com/u/5191152?v=4)](https://github.com/shdev "shdev (1 commits)")

---

Tags

compressminifyspresspluginhtmlminifycompressspress

### Embed Badge

![Health badge](/badges/paramonovav-spress-html-compress/health.svg)

```
[![Health](https://phpackages.com/badges/paramonovav-spress-html-compress/health.svg)](https://phpackages.com/packages/paramonovav-spress-html-compress)
```

###  Alternatives

[wyrihaximus/minify-html

Html minifier for CakePHP3

18151.2k1](/packages/wyrihaximus-minify-html)[sensiolabs/minify-bundle

Assets Minifier (CSS, JS) for Symfony &amp; Minify integration in Asset Mapper

57133.6k3](/packages/sensiolabs-minify-bundle)[frosh/platform-html-minify

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

1176.7k](/packages/frosh-platform-html-minify)

PHPackages © 2026

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