Registry / utility / nystudio107-craft-minify

nystudio107-craft-minify

JSON →
library5.0.0phppackagistunverified

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

composer require nystudio107/craft-minify
INSTALL
IMPORT
SIG · NYSTUDIO107-CRAFT-
N
nystudio107-craft-minify
utilityphpv5.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Minify
use nystudio107\craft\minify\Minify;

Minify an HTML string using the plugin's helper method.

use nystudio107\craft\minify\Minify; $minified = Minify::html('<div> content </div>'); echo $minified;
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
nystudio107-craft-minify — pip install nystudio107-craft-minify · libregistry