smilemd/yii2-htmlcompress

This package is abandoned and no longer maintained. The author suggests using the ogheo/yii2-htmlcompress package instead.

Compress HTML output into a single line

Installs: 10 472

Dependents: 0

Suggesters: 0

Security: 0

Stars: 18

Watchers: 5

Forks: 13

Open Issues: 2

Type:yii2-extension

1.1.0 2017-06-14 19:13 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:52:00 UTC


README

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