PHP slim framework middleware to minify HTML output
PHP
Latest commit bc41a58 Jun 14, 2016 @christianklisch committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
src/Slim/Middleware
LICENSE
README.md
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():

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

or use the composer:

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

Contributors

Copyright and license

Copyright 2014 released under MIT license.