aaronsaray/slimphp-compression-middleware

This package is abandoned and no longer maintained. No replacement package was suggested.

GZip Compression Middleware for SlimPHP

dev-master 2016-01-10 19:36 UTC

This package is auto-updated.

Last update: 2024-09-19 20:17:29 UTC


README

Need to add gzip compression to your output but don't have access to the server configuration? This is a middleware for SlimPHP Framework to use HTTP+gzip compression.

Please note: If you CAN add this functionality to your server config, please do that instead.

Installation Instructions

Install the latest version with

$ composer require aaronsaray/slimphp-compression-middleware

Usage Instructions

$app = new \Slim\Slim();
$compressMiddleware = new \AaronSaray\SlimPHPMiddleware\Compress();
$app->add($compressMiddleware);