Download the PHP package steffenbrand/html-compress-middleware without Composer
On this page you can find all versions of the php package steffenbrand/html-compress-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download steffenbrand/html-compress-middleware
More information about steffenbrand/html-compress-middleware
Files in steffenbrand/html-compress-middleware
Package html-compress-middleware
Short Description HTML Compress Middleware
License
Homepage https://github.com/steffenbrand/html-compress-middleware
Informations about the package html-compress-middleware
HTML Compress Middleware
PSR-15 compliant middleware to compress html responses.
How to install
How to use with Zend Expressive 3
Add the middleware to your config/pipeline.php
Add the middleware to your config/autoload/dependencies.global.php
Or use it as a routed middleware, if you don't want the middleware to be invoked on certain routes.
Enable compression
To enable compression disable the development mode.
HTML compression is only meant for production.
Disable compression
To disable compression enable the development mode.
HTML compression will not run in development mode.
Or provide your own development-mode settings by editing the file config/autoload/development.local.php.dist
All versions of html-compress-middleware with dependencies
psr/container Version ^1.0
psr/http-message Version ^1.0.1
psr/http-server-middleware Version ^1.0
wyrihaximus/html-compress Version ^1.4
zendframework/zend-diactoros Version ^1.7