lessphp

LESS Compiler written in PHP. Usage is simple:

<?php
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):

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

Also ships with an extra shell executable script plessc

$ plessc input.less > output.css

lessphp →

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

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.