Skip to content

rlockerl/yii2-htmlcompress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 "smilemd/yii2-htmlcompress:*"

or add

"smilemd/yii2-htmlcompress": "*"

to the require section of your composer.json file.

Configure

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

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

Enjoy ;)

About

Compress HTML output into a single line

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%