PHPackages                             dorsetdigital/silverstripe-htmlminifier - 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. dorsetdigital/silverstripe-htmlminifier

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

dorsetdigital/silverstripe-htmlminifier
=======================================

HTML minifier for Silverstripe

v1.1.0(1y ago)41.4k1BSD-3-ClausePHP

Since Feb 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DorsetDigital/silverstripe-htmlminifer)[ Packagist](https://packagist.org/packages/dorsetdigital/silverstripe-htmlminifier)[ Docs](https://github.com/DorsetDigital/silverstripe-htmlminifier)[ RSS](/packages/dorsetdigital-silverstripe-htmlminifier/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

Silverstripe HTML Minifier
==========================

[](#silverstripe-html-minifier)

This module minifies the output of a Silverstripe site using the HtmlMin package

Requirements
============

[](#requirements)

\*Silverstripe 4.x

Installation
============

[](#installation)

- Install the code with `composer require dorsetdigital/silverstripe-htmlminifier "^1"`
- Run a `dev/build?flush` to update your project

Usage
=====

[](#usage)

The module needs to be enabled in order to work. This can be done in a yml file:

```
---
Name: minifierconfig
---

DorsetDigital\SSMinifier\Middleware:
  enable: true
  enable_in_dev: false
```

The options are hopefully fairly self explanatory:

- `enable` - enable minification
- `enable_in_dev` - enable minification in dev mode (default false)

Notes
=====

[](#notes)

- The module is disabled in the CMS / admin system

Credits
=======

[](#credits)

- Uses the excellent HtmlMin package ()
- As always, thanks to the core team for all their hard work.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance48

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 96.6% 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 ~474 days

Total

5

Last Release

385d ago

### Community

Maintainers

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

---

Top Contributors

[![DorsetDigital](https://avatars.githubusercontent.com/u/15108750?v=4)](https://github.com/DorsetDigital "DorsetDigital (28 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

htmlminsilverstripe-4silverstripe-moduleperformancehtmlsilverstripeminify

### Embed Badge

![Health badge](/badges/dorsetdigital-silverstripe-htmlminifier/health.svg)

```
[![Health](https://phpackages.com/badges/dorsetdigital-silverstripe-htmlminifier/health.svg)](https://phpackages.com/packages/dorsetdigital-silverstripe-htmlminifier)
```

###  Alternatives

[dorsetdigital/silverstripe-enhanced-requirements

Enhanced requirements for Silverstripe

117.8k4](/packages/dorsetdigital-silverstripe-enhanced-requirements)[nathancox/minify

Minifies CSS requirements using Minify (http://code.google.com/p/minify/)

28143.4k1](/packages/nathancox-minify)[wyrihaximus/minify-html

Html minifier for CakePHP3

18148.3k1](/packages/wyrihaximus-minify-html)[frosh/platform-html-minify

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

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

PHPackages © 2026

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