PHP slim framework middleware to minify HTML output
PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Slim/Middleware
.gitignore
LICENSE
README.md documentation Mar 30, 2017
composer.json

README.md

slim-minify

Slim middleware to minify HTML output generated by the slim PHP framework. It removes whitespaces, empty lines, tabs beetween html-tags and comments to reduce traffic. This script is a summary of stackoverflow answers.

Usage

Copy the file Minify.php to 'Slim/Middleware/'. Register minify via $app->add():

or use the composer:

    "require": {
        "christianklisch/slim-minify": "0.5.0"
    }

in 'src/middleware.php':

$app->add(new \Slim\Middleware\Minify() );

Contributors

Copyright and license

Copyright 2014 released under MIT license.