This is a PHP CLI minification tool for CSS and JavaScript. It uses Matthias Mullie's minify library as an engine.
- Grab the
build/minify.phararchive - Make it global:
cp build/minify.phar /usr/local/bin/minify && sudo chmod +x /usr/local/bin/minify - Create a minify.ini on your project. Follow the sample file.
- Run
minify
- Clone or download the repo and
cdinto it - Run:
php build.php - Follow the installation guide above
- Introduce configurability from the
minify.inifile. - Introduce autoload
PHP CLI Minify is MIT licensed.