visavi / compressor
数据压缩和结果输出压缩
v1.3
2015-06-23 09:12 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-09-20 01:03:57 UTC
README
基本有用功能列表
- 动态压缩页面,并将结果以压缩百分比输出
- 检查已安装库 gzip 或包含指令 zlib.output_compression
- 默认情况下,服务器上启用 gzip 压缩
- 压缩支持还检查访问者的浏览器
- 3 种压缩方法(gzip、x-gzip、deflate),根据用户的浏览器选择的方法操作
<?php // Enabling data compression Visavi\Compressor::start(); // Getting the results of the compression, output compression percentage of the data (not a mandatory method call) echo Visavi\Compressor::result().'%';
安装
composer require visavi/compressor
许可证
该类是开源软件,根据 MIT 许可证 许可