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

ActiveLibrary

duba/lessphp
============

lessphp is a compiler for LESS written in PHP.

v0.5.2(6y ago)0167MITPHP

Since Jun 10Pushed 6y agoCompare

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

READMEChangelogDependencies (2)Versions (11)Used By (0)

[![Build Status](https://camo.githubusercontent.com/3f930300a03240e8d466cc40c54a78cd37b496eeeef94f713d731141ccdf79f2/68747470733a2f2f7472617669732d63692e6f72672f6c6561666f2f6c6573737068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/leafo/lessphp)

lessphp v0.5.1
==============

[](#lessphp-v051)

###

[](#httpleafonetlessphp)

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

```
