LESS Compiler written in PHP. Usage is simple:

require "lessc.inc.php";

$less = new lessc;
echo $less->compile(".block { padding: 3 + 4px }");

Of course one can take files as input too (define a 2nd argument to cache on disk):

echo $less->compileFile("input.less");

Also ships with an extra shell executable script plessc

$ plessc input.less > output.css

lessphp →

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.