Search code examples
phpjavascriptv8less

LESS compiler for PHP


I'm trying to compile LESS from PHP and don't want to use node.js or ruby.

There's this PHP implementation I found through Google but it seams really outdated and lacks support for newer features.

I was thinking of using the V8js API to run less.js, would that work since it has no DOM support?

Basically my question is: How can I run this JS file from a PHP application?


Solution

  • Here's the answer:

    https://github.com/leafo/lessphp

    There's no other way for the moment.