PHPackages                             dotzero/yii-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. [Templating &amp; Views](/categories/templating)
4. /
5. dotzero/yii-less

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

dotzero/yii-less
================

The Yii LessPhp extension that allows developers to compile LESS files into CSS on the fly, using the LessPhp compiler

v1.0.0(10y ago)05.0kMITPHPPHP &gt;=5.3.0

Since May 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/zero-archive/yii-less)[ Packagist](https://packagist.org/packages/dotzero/yii-less)[ RSS](/packages/dotzero-yii-less/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Yii LessPhp
===========

[](#yii-lessphp)

[![Latest Stable Version](https://camo.githubusercontent.com/e8917882750dd965f4cfe0b72970a6f1224f40ce95c5447d115a8ea123000950/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f7969692d6c6573732f76657273696f6e)](https://packagist.org/packages/dotzero/yii-less)[![License](https://camo.githubusercontent.com/3164f361d6d2239a12d5428002d9b4253d74fe6caf090dc9175219328d8af291/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f7969692d6c6573732f6c6963656e7365)](https://packagist.org/packages/dotzero/yii-less)

**ELessPhp** is an extension for the **Yii PHP framework** that allows developers to compile LESS files into CSS on the fly, using the [LessPhp](http://leafo.net/lessphp/) compiler.

Requirements
------------

[](#requirements)

- [Yii Framework](https://github.com/yiisoft/yii) 1.1.14 or above
- [Composer](http://getcomposer.org/doc/)

Install
-------

[](#install)

### Via composer:

[](#via-composer)

```
$ composer require dotzero/yii-less
```

- Add vendor path to your configuration file, attach component and set properties:

```
'aliases' => array(
    ...
    'vendor' => realpath(__DIR__ . '/../../vendor'),
),
'components' => array(
    ...
    'less' => array(
        'class' => 'vendor.dotzero.yii-less.ELessCompiler',
        'lessphpDir' => 'vendor.leafo.lessphp', // Path alias of lessc.inc.php directory
        'forceCompile' => false, // Force recompile LESS into CSS every initializes the component
        'files' => array( // Files to compile (relative from your base path)
            'css/style.less' => 'css/style.css',
            'css/userstyle.less' => 'css/userstyle.css',
        ),
    ),
),
```

- Add the following to your config file `preload` section:

```
'preload' => array(
    ...
    'less',
),
```

License
-------

[](#license)

Licensed under the MIT license:

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3661d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/acb949df784d335647f74ca98bf03212a11f4f28ee459443aa599335de418c29?d=identicon)[dotzero](/maintainers/dotzero)

---

Top Contributors

[![dotzero](https://avatars.githubusercontent.com/u/265633?v=4)](https://github.com/dotzero "dotzero (10 commits)")

---

Tags

lessphpyiiyii-frameworkextensionBehavioryii

### Embed Badge

![Health badge](/badges/dotzero-yii-less/health.svg)

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

###  Alternatives

[vova07/yii2-imperavi-widget

The imperavi redactor widget for Yii 2 framework.

243979.7k40](/packages/vova07-yii2-imperavi-widget)[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)

PHPackages © 2026

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