aaronsaray / slimphp-compression-middleware
GZip Compression Middleware for SlimPHP
Installs: 1 731
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
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);