PHPackages                             neilime/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. neilime/lessphp

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

neilime/lessphp
===============

lessphp is a compiler for LESS written in PHP.

v0.5(12y ago)017.0k12MITPHP

Since Jun 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/neilime/lessphp)[ Packagist](https://packagist.org/packages/neilime/lessphp)[ Docs](http://leafo.net/lessphp/)[ RSS](/packages/neilime-lessphp/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (9)Used By (2)

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: .

---

### This fork ([neilime/lessphp](https://github.com/neilime/lessphp))

[](#this-fork-neilimelessphp)

The only change in this fork is the ability to change relative paths according to path to root .less file. This fork will be mandatory until the pull request [\#291](https://github.com/leafo/lessphp/pull/291) is accepted, or an alternative solution is proposed.

---

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.

```
