Skip to content

relishapps/compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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.

About

JS and CSS compressor for PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages