cyberrebell / php-minify
glue and minify css and js using php stdlib
dev-master
2015-09-10 12:23 UTC
Requires
- php: >=5.6.12
This package is not auto-updated.
Last update: 2025-01-04 18:54:57 UTC
README
glue and minify css and js using only php stdlib
configuration example:
minify.config.php
return [ [ 'glue&minify', [ 'styles/css/reset.css', 'styles/css/style.css', 'styles/css/plugin/calendar.css' ], 'public/css/app.css' ], [ 'glue&minify', [ 'js/jquery.js', 'js/tracking.js', 'js/helper.js' ], 'public/js/app.js' ] ];
usage:
<?php include 'vendor/autoload.php'; use PhpMinify\Launcher\MinifyLauncher; $launcher = new MinifyLauncher(include 'minify.config.php'); $launcher->run();