PHPWee - Minify HTML, HTML5, CSS and Javascript using PHP

preview_player
Показать описание

The best bit is its free and open source under the BSD license.



How to compress HTML:

$minified_html = PHPWee\Minify::html($any_html);

This automatically compresses all inline scripts and stylesheets within the HTML document. Apply a 'data-no-min' attribute to a script or style to exclude it from minification.

How to compress CSS:

$minified_css = PHPWee\Minify::css($any_css);
How to compress JS:

$minified_js = PHPWee\Minify::html($any_js);
Spelling out out:

$minified_html = PHPWee\Minify::html($html);
// a 9.38% performance boost - in 3 lines of code!!
There are working examples in the /examples folder of the package.
Рекомендации по теме
Комментарии
Автор

Open source projects - PHPWee PHP Minifier launched

searchturbine
Автор

Is this project dead? Github shows just 16 commits by one contributor, the last being March 2015.

nick-rice
Автор

Why do you advertise an abandoned code?
regrettable

antonior.
welcome to shbcf.ru