relishmedia / compressor
CSS and JS compressor for PHP
dev-master
2016-06-11 21:51 UTC
Requires (Dev)
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2025-02-01 21:49:46 UTC
README
JS and CSS Compressor for PHP
<head> <?php Compressor::start() ?> <link rel="stylesheet" href="/css/file1.css"> <link rel="stylesheet" href="/css/file2.css"> <script src="/js/file1.js"></script> <script src="/js/file2.js"></script> <?php Compressor::stop() ?> </head>
This will output something like:
<head> <script src="/js/compressor/2puc4b6qbsu8ok00o0gk4k4ck_40z8o75yaqyokc44sgwkosgow.js"></script> <link href="/css/compressor/2nvxrxnwc6kgwoswwwg88o84c_xjvyk7x5cqowo48ckgs44g8g.css" rel="stylesheet"> </head>
The files have been concatenated, minified and cached.