PHPackages                             goatherd/gh-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. goatherd/gh-minify

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

goatherd/gh-minify
==================

Plugin for html minification.

v1.0(12y ago)1350[4 issues](https://github.com/goatherd/wp-minify/issues)MITPHP

Since Mar 23Pushed 12y ago1 watchersCompare

[ Source](https://github.com/goatherd/wp-minify)[ Packagist](https://packagist.org/packages/goatherd/gh-minify)[ Docs](https://github.com/goatherd/wp-minify)[ RSS](/packages/goatherd-gh-minify/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

gh-minify
=========

[](#gh-minify)

WordPress HTML minification plugin.

Features
--------

[](#features)

Minifies request content for some contents served through WordPress.

- minify HTML
- minify inline Script
- minify inline CSS
- allow to veto through `gh-minify-veto` filter
- allow to post-process minification through `gh-minify-content` filter
- allow to alter tag-ignore list through `gh-minify-skip-tags` filter
- standalone usage

recommended usage
-----------------

[](#recommended-usage)

Prepend this to your WordPress index.php

```
Goatherd\WpPlugin\Minify::initPlugin(); // enable minify
```

Note that you either need to register composer autoloading (recommended; for example: `require_once __DIR__ . '/vendor/autoload.php`) or preload the `Goatherd\WpPlugin\Minify` class file.

technical notes
---------------

[](#technical-notes)

PSR-4 compliant code approximating [SOLID](http://en.wikipedia.org/wiki/SOLID_%28object-oriented_design%29) priciples.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

4429d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c0597339c399bea9497c59ad70ec933e5a6c95458122649baf2dab18038ba88?d=identicon)[goatherd](/maintainers/goatherd)

---

Tags

wordpresshtmlminify

### Embed Badge

![Health badge](/badges/goatherd-gh-minify/health.svg)

```
[![Health](https://phpackages.com/badges/goatherd-gh-minify/health.svg)](https://phpackages.com/packages/goatherd-gh-minify)
```

###  Alternatives

[wyrihaximus/minify-html

Html minifier for CakePHP3

18148.3k1](/packages/wyrihaximus-minify-html)[christianklisch/slim-minify

Minify html output in slim framework

3831.9k1](/packages/christianklisch-slim-minify)[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)
