library slimphp-compression-middleware
GZip Compression Middleware for SlimPHP
aaronsaray/slimphp-compression-middleware
GZip Compression Middleware for SlimPHP
- Sunday, January 10, 2016
- by aaronsaray
- Repository
- 1 Watchers
- 1 Stars
- 40 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 3 % Grown
SlimPHP Compression Middleware
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., (*1)
Please note: If you CAN add this functionality to your server config, please do that instead., (*2)
Installation Instructions
Install the latest version with, (*3)
$ composer require aaronsaray/slimphp-compression-middleware
Usage Instructions
$app = new \Slim\Slim();
$compressMiddleware = new \AaronSaray\SlimPHPMiddleware\Compress();
$app->add($compressMiddleware);