ogheo/yii2-htmlcompress Compress HTML output into a single line

minifyviewhtmlcompressminimizeoutput

yii2-htmlcompress Software License Scrutinizer

Compress HTML output into a single line

Install

The preferred way to install this extension is through composer.

try

composer require "ogheo/yii2-htmlcompress:*"

or add

"ogheo/yii2-htmlcompress": "*"

to the require section of your composer.json file.

Configure

return [
    // ...
    'components' => [
        // ...
        'view' => [
            'class' => '\ogheo\htmlcompress\View',
            'compress' => YII_ENV_DEV ? false : true,
            // ...
        ]
    ]
];

By default extension is disabled on DEV environment and enabled on PROD.

Enjoy ;)

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.1.0 is the latest of 11 releases



MIT license
Stats
21 github stars & 13 github forks
88 downloads in the last day
1939 downloads in the last 30 days
140075 total downloads