Data compression and result output compression

v1.3 2015-06-23 09:12 UTC

This package is auto-updated.

Last update: 2020-05-19 15:34:05 UTC


Latest Stable Version Total Downloads Latest Unstable Version License

Basic useful feature list:

  • Compress the page on the fly and outputs the result as a percentage of compression
  • There is a check on the installed library gzip or included directive zlib.output_compression
  • Specifies the gzip compression is turned on by default on the server
  • Compression support also checked the visitors browser
  • 3 compression method (gzip, x-gzip, deflate), depending on which method of operating the user's browser
// Enabling data compression

// 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


The class is open-sourced software licensed under the MIT license