dev-master
9999999-devMinify helper and component for Yii PHP framework 2.0
BSD-3-Clause
The Requires
by B@RT
component extension helper yii minify
Minify helper and component for Yii PHP framework 2.0
Compress html and css/js in page component and helper for Yii PHP framework 2.0, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require "maybeworks/yii2-minify" "*"
or add, (*4)
"maybeworks/yii2-minify" : "*"
to the require section of your application's composer.json
file., (*5)
For usage as component - add to app config, (*6)
'components'=>[ 'minifyManager' => [ 'class' => 'maybeworks\minify\MinifyManager', 'html' => !YII_DEBUG, 'css' => !YII_DEBUG, 'js' => !YII_DEBUG, ] ] 'bootstrap' => [ 'minifyManager' ],
or use manual, (*7)
$html = MinifyHelper::html($html); $css = MinifyHelper::css($css); $js = MinifyHelper::js($js);
Nothing is impossible, limit exists only in the minds of...
maybe.works, (*8)
Minify helper and component for Yii PHP framework 2.0
BSD-3-Clause
component extension helper yii minify