relishmedia / compressor
CSS and JS compressor for PHP
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/relishmedia/compressor
Requires (Dev)
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2025-10-12 01:18:54 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.