This plugin is a modified version of PHP, JS and CSS Minifier by promatik, with this plugin, you can minify you js's and css's via PHP, it will create a file with .min, example: css/style.css > css/style.min.css. This plugin uses an online service provided by Andy Chilton, http://chilts.org/
- Use with Array
$array = array(
"js/application.js",
"css/application.css"
);
minify($array);
- Use with Object Class
$object = new stdClass();
$object->file1 = 'js/application.js';
$object->file2 = 'css/application.css';
minify($object);
- Use with Parameters
minify("js/main.js", "css/main.css");
- Or use with all options
// Array
$array = array(
"js/application.js",
"css/application.css"
);
// Object Class
$object = new stdClass();
$object->file1 = 'js/application.js';
$object->file2 = 'css/application.css';
// Object Array
$arrayObject = (object) array(
"css/main.css",
"js/main.js"
);
minify($array, $object, $arrayObject, "js/main.js", "css/main.css");
- Instantly compress all your JS's and CSS's
This allows you to add js and css files to a list, that you can minify at any time.
- PHP Webserver
Released under the MIT license.