PHP code example of erykai / compress

1. Go to this page and download the library: Download erykai/compress 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/ */

    

erykai / compress example snippets


use Erykai\Compress\Compress;

rage/", "file.jpg", 25))->img()->send();

use Erykai\Compress\Compress;

rage/", "file.pdf", 25))->pdf()->send();