aaronsaray/slimphp-compression-middleware
Composer 安装命令:
composer require aaronsaray/slimphp-compression-middleware
包简介
GZip Compression Middleware for SlimPHP
README 文档
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);
统计信息
- 总下载量: 1.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-10