PHPackages                             nystudio107/craft-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. [Templating &amp; Views](/categories/templating)
4. /
5. nystudio107/craft-minify

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

nystudio107/craft-minify
========================

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

5.0.0(2y ago)37469.2k↓64.7%3[1 issues](https://github.com/nystudio107/craft-minify/issues)[2 PRs](https://github.com/nystudio107/craft-minify/pulls)20MITPHPPHP ^8.2

Since Feb 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nystudio107/craft-minify)[ Packagist](https://packagist.org/packages/nystudio107/craft-minify)[ GitHub Sponsors](https://github.com/khalwat)[ RSS](/packages/nystudio107-craft-minify/feed)WikiDiscussions develop-v5 Synced 3d ago

READMEChangelog (10)Dependencies (5)Versions (26)Used By (20)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/533006445e72a3afa580a418598d9b8327d31f41fb81a85605f3778911276f94/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d6d696e6966792f6261646765732f7175616c6974792d73636f72652e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-minify/?branch=v5) [![Code Coverage](https://camo.githubusercontent.com/5344dc454dc0259c471ecc7755e06b92d0167a3b312e4e25b06c220597d85be8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d6d696e6966792f6261646765732f636f7665726167652e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-minify/?branch=v5) [![Build Status](https://camo.githubusercontent.com/4845a9776d5ba53b90cb99e666b8071f243736c0e9663cee4081e836a377339d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d6d696e6966792f6261646765732f6275696c642e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-minify/build-status/v5) [![Code Intelligence Status](https://camo.githubusercontent.com/1368071173524302b480e23e24b0619fa5c0237d90aedb5febff3cc48eb63795/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d6d696e6966792f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d7635)](https://scrutinizer-ci.com/code-intelligence)

Minify plugin for Craft CMS 5.x
===============================

[](#minify-plugin-for-craft-cms-5x)

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates

[![Screenshot](./docs/docs/resources/img/plugin-logo.png)](./docs/docs/resources/img/plugin-logo.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 5.0.0 or later.

Installation
------------

[](#installation)

1. Install with Composer via `composer require nystudio107/craft-minify` from your project directory
2. Install the plugin via `./craft install/plugin minify` via the CLI -or- in the Craft Control Panel under Settings &gt; Plugins

You can also install Minify via the **Plugin Store** in the Craft Control Panel.

Documentation
-------------

[](#documentation)

Click here -&gt; [Minify Documentation](https://nystudio107.com/plugins/minify/documentation)

Brought to you by [nystudio107](https://nystudio107.com/)

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.7% 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 ~119 days

Recently: every ~16 days

Total

23

Last Release

810d ago

Major Versions

1.2.12 → 4.0.02024-02-10

4.0.0 → 5.0.0-beta.12024-02-10

1.2.13 → 4.0.12024-02-11

v4.x-dev → 5.0.0-beta.22024-02-11

v1.x-dev → 5.0.02024-04-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7570798?v=4)[Andrew Welch](/maintainers/khalwat)[@khalwat](https://github.com/khalwat)

---

Top Contributors

[![khalwat](https://avatars.githubusercontent.com/u/7570798?v=4)](https://github.com/khalwat "khalwat (75 commits)")[![XhmikosR](https://avatars.githubusercontent.com/u/349621?v=4)](https://github.com/XhmikosR "XhmikosR (1 commits)")

---

Tags

craft-plugincraft3craftcmsminifyminifycmsCraftcraftcmscraft-plugin

### Embed Badge

![Health badge](/badges/nystudio107-craft-minify/health.svg)

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

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.7k1](/packages/wbrowar-guide)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.6k](/packages/verbb-footnotes)[verbb/events

A full-featured plugin for event management and ticketing.

2311.9k](/packages/verbb-events)

PHPackages © 2026

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