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.phar
archive - 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
cd
into it - Run:
php build.php
- Follow the installation guide above
- Introduce configurability from the
minify.ini
file. - Introduce autoload
PHP CLI Minify is MIT licensed.