1. Go to this page and download the library: Download rudrax/magicmin 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/ */
rudrax / magicmin example snippets
//Default usage will echo from function calls and leave images untouched
$minified = new Minifier();
//Return data without echo
$minified = new Minifier( array( 'echo' => false ) );
//Echo the resulting file path, while base64_encoding images and including as part of css
$minified = new Minifier( array( 'encode' => true ) );
//Return only AND encode/