PHP code example of michalsn / minifier
1. Go to this page and download the library: Download michalsn/minifier 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/ */
michalsn / minifier example snippets
public $js = [
'all.min.js' => [
'jquery-3.7.1.min.js', 'bootstrap-3.3.7.min.js', 'main.js',
]
];
// or / and
public $css = [
'all.min.css' => [
'bootstrap-3.3.7.min.css', 'font-awesome-4.7.0.min.css', 'main.css',
]
];
console
php spark minify:publish