ogheo/yii2-htmlcompress

Compress HTML output into a single line

Maintainers

👁 ogheo

Package info

github.com/ogheo/yii2-htmlcompress

Type:yii2-extension

pkg:composer/ogheo/yii2-htmlcompress

Statistics

Installs: 188 092

Dependents: 1

Suggesters: 0

Stars: 20

Open Issues: 2

1.1.0 2017-06-14 19:13 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT e1fcbc75bf1b6146fd42d929f94f55f337c6d8e4

  • Oleg Gheorghita <oleg.gheo.woop@gmail.com>

viewhtmlminifyoutputcompressyii2minimize

This package is not auto-updated.

Last update: 2026-06-17 00:14:07 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 ;)