yii2-html-compressor-filter A filter that compresses HTML.

  1. Demo
  2. Requirements
  3. Usage
  4. Donations

A filter that compresses HTML. It also compresses CSS.

Demo

Click here for the demo. If you check the source code you will see that it is compressed.

Requirements

Yii 2.x

Usage

Copy HtmlCompressorFilter.php to the filters directory (create it if it doesn't exist).

Add an entry to the behaviors array:

public function behaviors()
    {
        return [
	    [
		'class' => 'app\filters\HtmlCompressorFilter',
	    ],
        ];
    }

Filter only applies when YII_DEBUG == false.

Donations

Donations are welcome. Thanks for your support!!!

Paypal

0 0
3 followers
217 downloads
Yii Version: 2.0.*
License: BSD-2-Clause
Category: Others
Developed by: oligalma
Created on: Dec 12, 2015
Last updated: a year ago

Downloads

show all

Related Extensions