Class lajax\assetminifier\minifiers\PhpJsMinifier

Inheritancelajax\assetminifier\minifiers\PhpJsMinifier » yii\base\Object
Implementslajax\assetminifier\minifiers\MinifierInterface
Available since version1.0

Minifying js using php script.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$options array JShrink lib configuration. lajax\assetminifier\minifiers\PhpJsMinifier

Public Methods

Hide inherited methods

MethodDescriptionDefined By
minify() Function for minifying the asset file (css, js) received as a parameter. lajax\assetminifier\minifiers\PhpJsMinifier

Property Details

$options public property
array $options = ['flaggedComments' => true]

JShrink lib configuration.

Method Details

minify() public method

Function for minifying the asset file (css, js) received as a parameter.

string minify$path )
$path string

The path of the asset file to be minified.

return string

The content of the asset file to be minified.