PHP code example of visavi / compressor

1. Go to this page and download the library: Download visavi/compressor library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

visavi / compressor example snippets



// 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().'%';