Skip to content

molayli/slim-minify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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\App(....);
$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.

About

PHP slim framework middleware to minify HTML output

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%