title: Minifying JS/CSS Files on request with PHP
body: <p>I am currently in the process of writing a javascript class that loads libraries from my server dependant upon what the site needs. Much like the Google  API <code>e.g. google.load('jquery','1.7.1')</code>.</p>
  
  <p>One of the things that I would like to do is combine all the JS/CSS files into one and minify them using PHP. I have had a good look around the net and whilst I was able to find a fair few questions on Stackoverflow that refer to this topic, they seemed somewhat outdated. So, resultantly, I have decided to re-open this debate in order to gain some up to date info on this subject.</p>
  
  <p>I was able to find two PHP Javascript minifiers on the net, these being</p>
  
  <ol>
  <li><a href="https://github.com/tedivm/JShrink" rel="nofollow">JShrink</a></li>
  <li><a href="http://joliclic.free.fr/php/javascript-packer/en/" rel="nofollow">Javascript Packer</a></li>
  </ol>
  
  <p><em>I did actually find a third (JSMin), but this was unmaintained</em></p>
  
  <p>My questions are quite simple:</p>
  
  <ol>
  <li>Are these scripts reliable and maintained? Do they even need to be maintained?</li>
  <li>Do they compress CSS?</li>
  <li>Which script is better?</li>
  </ol>