PHP code example of movescode / compress

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

    

movescode / compress example snippets


use MovesCode\Compress\CSS;
use MovesCode\Compress\JS;

(new CSS('base.css'))->add('theme.css')->minify('style.css');
(new JS('vendor.js'))->add('app.js')->minify('scripts.js');