PHPackages                             nodge/lessphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nodge/lessphp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nodge/lessphp
=============

lessphp is a compiler for LESS written in PHP.

v0.3.6(13y ago)01113MITPHP

Since Jun 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Nodge/lessphp)[ Packagist](https://packagist.org/packages/nodge/lessphp)[ Docs](http://leafo.net/lessphp/)[ RSS](/packages/nodge-lessphp/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

lessphp v0.4.0
==============

[](#lessphp-v040)

###

[](#httpleafonetlessphp)

[![Build Status](https://camo.githubusercontent.com/f0e10693432a5df7a0980e2880a70e5d9d7fd652b3f85f060fea48dfc8840d3d/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c6561666f2f6c6573737068702e706e67)](http://travis-ci.org/leafo/lessphp)

`lessphp` is a compiler for LESS written in PHP. The documentation is great, so check it out: .

Here's a quick tutorial:

### How to use in your PHP project

[](#how-to-use-in-your-php-project)

The only file required is `lessc.inc.php`, so copy that to your include directory.

The typical flow of **lessphp** is to create a new instance of `lessc`, configure it how you like, then tell it to compile something using one built in compile methods.

The `compile` method compiles a string of LESS code to CSS.

```
