title: Compile a referenced LESS file into CSS with PHP automatically
body: <p>I want the following things to occur:</p>
  
  <ol>
  <li><p>Have the process automated server side.</p></li>
  <li><p>Simply be able to reference the LESS file as I would a CSS file in my code.</p></li>
  <li><p>The user is returned minified CSS instead of the LESS file - cached so the compiler doesn't need to run unless the LESS file has been updated.</p></li>
  <li><p>For this to work with <em>any</em> LESS file that is referenced anywhere within my domain.</p></li>
  </ol>
  
  <p>I spotted <a href="http://leafo.net/lessphp/">Lessphp</a>, but the documentation isn't very clear, nor does it explain how to dynamically get any LESS file to it. I thought I would post up how I got it all working as I haven't seen a run through on how to achieve this with PHP.</p>