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

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

marcusschwarz/lesserphp
=======================

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

v0.6.0(5y ago)2911.1M—0.5%11[7 issues](https://github.com/MarcusSchwarz/lesserphp/issues)3MITPHPPHP ^7.2|^7.3|^7.4|^8.0

Since Jun 10Pushed 5y ago9 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (23)Used By (3)

[![Build Status](https://camo.githubusercontent.com/407832a598f806fb492bdde18dd8313f9d1a677e7e381f3ff9ba053bae01d982/68747470733a2f2f7472617669732d63692e6f72672f4d61726375735363687761727a2f6c65737365727068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/MarcusSchwarz/lesserphp) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/c411ce2ba52b3f4d44abc2f03eba89a5fd4f51375cb09a7036c721be30b41e4d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d61726375735363687761727a2f6c65737365727068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MarcusSchwarz/lesserphp/?branch=master) [![Coverage Status](https://camo.githubusercontent.com/294f688eb42595b398aed54080526606d579c8b5ccecc464849c5b836c5c6893/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4d61726375735363687761727a2f6c65737365727068702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/MarcusSchwarz/lesserphp?branch=master)

lesserphp dev-master
====================

[](#lesserphp-dev-master)

###

[](#httpgithubcommarcusschwarzlesserphp)

**Please note:** Please bear in mind, the master branch is *not* up-to-date with the release branch, which is 0.6-dev. Bug fixes should go to branch 0.6-dev (php7.2 and greater) or 0.5-dev (php5.6 to php7.4). Thank you!

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

```
