Combine and minify CSS and JS files with pure PHP.
o
|-- minified/
| |-- minified.css.php
| `-- minified.js.php
|-- minifier.php
|-- CHANGELOG
`-- README.md
include_once(/path/to/minifier.php);
$opts = array(
'condition' => true,
'version' => '',
'type' => 'style',
'path' => array(,
'https://example.com/path/to/style.css'
)
);
new Minifier($opts);
$opts = array(
'condition' => true,
'version' => '',
'type' => 'script',
'path' => array(
'https://example.com/path/to/script.js'
)
);
new Minifier($opts);
Please see CHANGELOG for more information what has changed recently.
This software is licensed under the MIT LICENSE