PHPackages                             angus/lesserphp - 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. angus/lesserphp

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

angus/lesserphp
===============

lesserphp is a compiler for LESS written in PHP based on leafo's lessphp.

v1.0.1(1y ago)017MITPHPPHP ^7.2|^7.3|^7.4|^8.0

Since Mar 10Pushed 1y agoCompare

[ Source](https://github.com/angusaust/angus-lesserphp)[ Packagist](https://packagist.org/packages/angus/lesserphp)[ Docs](https://www.maswaba.de/lesserphpdocs/)[ RSS](/packages/angus-lesserphp/feed)WikiDiscussions angus Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

lesserphp v1.0.1
================

[](#lesserphp-v101)

###

[](#httpsgithubcomangusaustangus-lesserphp)

Installation
------------

[](#installation)

```
$ composer require angus/lesserphp
```

`lesserphp` is a compiler for LESS written in PHP. It is based on lessphp bei leafo. 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 **lesserphp** 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.

```
