1. Go to this page and download the library: Download juanchosl/assetminifyer 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/ */
juanchosl / assetminifyer example snippets
use JuanchoSL\AssetMinifyer\Drivers\JSMin;
$minifyed_content = JSMin::minify($js_code);
use JuanchoSL\AssetMinifyer\Drivers\CSSMin;
$minifyed_content = CSSMin::minify($css_code);
use JuanchoSL\AssetMinifyer\Adapters\Minifyer;
$minifyer = new Minifyer();
$js_minifyed = $minifyer->cleanJs($js_code);
$css_minifyed = $minifyer->cleanCss($css_code);
use JuanchoSL\AssetMinifyer\Adapters\Minifyer;
$minifyer = new Minifyer();
$minifyer->addFiles([$asset_fullpath_1, $asset_fullpath_2]);
$asset_minifyed = $minifyer->getContent();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.