PHP code example of varienos / varien.php.minify
1. Go to this page and download the library: Download varienos/varien.php.minify 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/ */
varienos / varien.php.minify example snippets
use Varien\Minify\Minifier;
$minifier = new Minifier();
echo "<style>".$minifier->css('/* path/to/file.1.css */').$minifier->css('/* path/to/file.2.css */')."</style>";
use Varien\Minify\Minifier;
$minifier = new Minifier();
echo "<script>".$minifier->js('/* path/to/file.1.js */').$minifier->js('/* path/to/file.2.js */')."</script>";
use Varien\Minify\Minifier;
$minifier = new Minifier();
echo $minifier->html('/* HTML CODES */');
sh
composer