PHPackages                             cakebake/yii2-less.php - 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/yii2-less.php

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

cakebake/yii2-less.php
======================

This is a Yii2 wrapper extension for PHP port of the official LESS processor http://lesscss.org.

137.2k6[1 PRs](https://github.com/cakebake/yii2-less.php/pulls)PHP

Since Sep 22Pushed 10y ago3 watchersCompare

[ Source](https://github.com/cakebake/yii2-less.php)[ Packagist](https://packagist.org/packages/cakebake/yii2-less.php)[ RSS](/packages/cakebake-yii2-lessphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Less.php
=============

[](#yii2-lessphp)

This is a Yii2 wrapper extension for PHP port of the official LESS processor .

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist cakebake/yii2-less.php "*"

```

or add

```
"cakebake/yii2-less.php": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it (without dots) in your config:

```
$config = [
    ...
    'components' => [
		...
        'assetManager' => [
            ...
            'converter' => [
                'class' => 'cakebake\lessphp\AssetConverter',
                'compress' => true, // Optional: You can tell less.php to remove comments and whitespace to generate minimized css files.
                'useCache' => true, // Optional: less.php will save serialized parser data for each .less file. Faster, but more memory-intense.
                //'cacheDir' => null, // Optional: is passed to the SetCacheDir() method. By default "cakebake\lessphp\runtime" is used.
                'cacheSuffix' => true, // Optional: Filename suffix to avoid the browser cache and force recompiling by configuration changes
            ],
			...
        ],
		...
	],
	...
];
```

So if it is configured you can specify your less files in asset bundle:

```
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.less',
    ];
    public $js = [
    ];
    public $depends = [
    ];
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### 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 (6 commits)")

### Embed Badge

![Health badge](/badges/cakebake-yii2-lessphp/health.svg)

```
[![Health](https://phpackages.com/badges/cakebake-yii2-lessphp/health.svg)](https://phpackages.com/packages/cakebake-yii2-lessphp)
```

###  Alternatives

[dzava/lighthouse

Interface for the Google Lighthouse project

4010.4k](/packages/dzava-lighthouse)

PHPackages © 2026

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