2017 © Pedro Peláez
 

yii2-extension yii2-minify

Minify helper and component for Yii PHP framework 2.0

image

maybeworks/yii2-minify

Minify helper and component for Yii PHP framework 2.0

  • Saturday, February 27, 2016
  • by B@RT
  • Repository
  • 1 Watchers
  • 4 Stars
  • 543 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

yii2-minify

Compress html and css/js in page component and helper for Yii PHP framework 2.0, (*1)

Installation

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)

Usage

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);

MaybeWorks
Nothing is impossible, limit exists only in the minds of...
maybe.works, (*8)

The Versions

27/02 2016

dev-master

9999999-dev

Minify helper and component for Yii PHP framework 2.0

  Sources   Download

BSD-3-Clause

The Requires

 

component extension helper yii minify