PHPackages                             cakebake/php-lesscss-compiler - 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. cakebake/php-lesscss-compiler

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

cakebake/php-lesscss-compiler
=============================

Compiles less code to css code

1.2.1(10y ago)0775LGPL-V3PHPPHP &gt;=5.4.0

Since Feb 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cakebake/php-lesscss-compiler)[ Packagist](https://packagist.org/packages/cakebake/php-lesscss-compiler)[ Docs](http://cakebake.de/)[ RSS](/packages/cakebake-php-lesscss-compiler/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

PHP LessCss Compiler
====================

[](#php-lesscss-compiler)

Compiles less code to css code. Generating static css, or dynamic php file which outputs css... the use depends on your ideas and the project requirements! ;)

### Features

[](#features)

- Compiles less to css code with `oyejorge/less.php` lib (Bootstrap 3 support)
- Caching
- Observes the less files to changes and generates only when necessary
- Minify (optional)
- Output CSS and/or write Stylesheet file

### Install via Composer

[](#install-via-composer)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install the package using the following command:

```
php composer.phar require --prefer-dist cakebake/php-lesscss-compiler "*"

```

or add

```
"cakebake/php-lesscss-compiler": "*"

```

to the require section of your `composer.json` file and run `php composer.phar update`.

### Usage Example

[](#usage-example)

For more options see source code comments in file `src/LessConverter.php`.

```
$less = new \cakebake\lesscss\LessConverter();
$less->init([
    [
        'input' => __DIR__ . '/example-1.less',
        'webFolder' => '../tests',
    ],
    [
        'input' => __DIR__ . '/example-2.less',
        'webFolder' => '../tests',
    ],
], __DIR__ . '/css/output.css');

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Recently: every ~54 days

Total

6

Last Release

3908d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f0c610f1daae44aca882e9f8319422fc19d8fc9fa727051c005722c6eb8e5fe?d=identicon)[cakebake](/maintainers/cakebake)

---

Top Contributors

[![cakebake](https://avatars.githubusercontent.com/u/7462226?v=4)](https://github.com/cakebake "cakebake (8 commits)")

---

Tags

phpcssfileslessstylesheetcombinecompile

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cakebake-php-lesscss-compiler/health.svg)

```
[![Health](https://phpackages.com/badges/cakebake-php-lesscss-compiler/health.svg)](https://phpackages.com/packages/cakebake-php-lesscss-compiler)
```

###  Alternatives

[wikimedia/less.php

PHP port of the LESS processor

12329.5M133](/packages/wikimedia-lessphp)[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62930.2M317](/packages/scssphp-scssphp)[dkcwd/dkcwd-zf2-munee

Zend Framework 2 module leveraging 'munee' an asset optimisation library developed by Cody Lundquist. You can find munee at http://github.com/meenie/munee

102.1k](/packages/dkcwd-dkcwd-zf2-munee)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
