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

ActiveYii2-extension

ovidiupop/yii2-less
===================

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

v1.0.1(2y ago)06GPL-3.0-or-laterPHP

Since Dec 9Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)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

```
composer require --prefer-dist ovidiupop/yii2-less "~1.0"

```

or add

```
"ovidiupop/yii2-less": "~1.0"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your config:

```
$config = [
    'components' => [
        'assetManager' => [
            'converter' => [
                'class' => 'ovidiupop\lessphp\AssetConverter',
                'force'=> true,     // Optional: On true will convert all .less files. You can make all changes in variable.less
                '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.
                'cacheSuffix' => true, // Optional: Filename suffix to avoid the browser cache and force recompiling by configuration changes
            ],
        ],
    ],
];
```

Now 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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

885d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bb4a24c5644cb321360d37f46ad33c41e901f347a9b0fbe1ccaa5c6f2a4a10d?d=identicon)[ovidiupop](/maintainers/ovidiupop)

---

Top Contributors

[![ovidiupop](https://avatars.githubusercontent.com/u/1079754?v=4)](https://github.com/ovidiupop "ovidiupop (7 commits)")

---

Tags

phpcssconverterlessyii2extensionassetsbundleslessphpassetmanager

### Embed Badge

![Health badge](/badges/ovidiupop-yii2-less/health.svg)

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

###  Alternatives

[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[raoul2000/yii2-bootswatch-asset

Use Bootswatch theme in your Yii application with minimum effort

2145.0k4](/packages/raoul2000-yii2-bootswatch-asset)

PHPackages © 2026

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