PHPackages                             inpassor/yii-eassetmanager - 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. inpassor/yii-eassetmanager

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

inpassor/yii-eassetmanager
==========================

Extended Asset Manager Compiles .less file(s) on-the-fly and publishes output .css file

v0.3(9y ago)4362MITPHPPHP ^5.3.3 || ^7.0

Since Jul 29Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Inpassor/yii-EAssetManager)[ Packagist](https://packagist.org/packages/inpassor/yii-eassetmanager)[ RSS](/packages/inpassor-yii-eassetmanager/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

EAssetManager class file.

Extended Asset Manager Compiles .less file(s) on-the-fly and publishes output .css file

Author: Inpassor  . Link:  . Version: 0.3 (2013.10.24) .

INSTALLATION
============

[](#installation)

\##Install with composer:

```
composer require inpassor/yii-eassetmanager

```

\##Manual install:

1. Copy EAssetManager.php to /protected/vendor/ directory
2. Add or replace the assetManager component in /protected/config/main.php like that:

```
	'components'=>array(

		...

		'assetManager'=>array(
			'class'=>'EAssetManager',
			'lessCompile'=>true,
			'lessCompiledPath'=>'application.assets.css',
			'lessFormatter'=>'compressed',
			'lessForceCompile'=>false,
		),

		...

	),

```

See code of EAssetManager.php to read description of public properties.

3. CHMOD 'lessCompiledPath' directory to 0777 in order to create new files there by EAssetManager.
4. Optional: enable Yii caching. Otherwise, EAssetManager will create (or use existing) directory /protected/runtime/cache/ and store cache data there. You can override this path by setting public property 'cachePath'.

USAGE
=====

[](#usage)

Just publish .less file with assetManager like that:

```
$css = CHtml::asset(Yii::app()->basePath.'/vendors/bootstrap/less/bootstrap.less');

```

That's all :)

Also it might be useful to pre-compile .less files. For example, to make command which compiles .less files in background. In this case you can use "lessCompile" method:

```
Yii::app()->assetManager->lessCompile(Yii::app()->basePath.'/vendors/bootstrap/less/bootstrap.less');

```

Output .css file will be stored under 'lessCompiledPath' directory. And then add already compiled file in your application:

```
$css = CHtml::asset(Yii::app()->assetManager->lessCompiledPath.'/bootstrap.css');

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

3623d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f64e4e791a38a96f9d40f19511fce91a8252cdad0eb8968425b710f58d1f490?d=identicon)[Inpassor](/maintainers/Inpassor)

---

Top Contributors

[![Inpassor](https://avatars.githubusercontent.com/u/3442673?v=4)](https://github.com/Inpassor "Inpassor (15 commits)")

---

Tags

csslessmanageryiiasset

### Embed Badge

![Health badge](/badges/inpassor-yii-eassetmanager/health.svg)

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

###  Alternatives

[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62929.3M291](/packages/scssphp-scssphp)[wikimedia/less.php

PHP port of the LESS processor

12328.7M118](/packages/wikimedia-lessphp)[rmrevin/yii2-fontawesome

Asset Bundle for Yii2 with Font Awesome

1474.2M135](/packages/rmrevin-yii2-fontawesome)[stolz/assets

An ultra-simple-to-use assets management library

289527.4k8](/packages/stolz-assets)[nizsheanez/yii2-asset-converter

Less, Sass, Scss and Phamlp converter for Yii2. No system requires. yii2-composer support, Less autoupdate, customizing of output directory

61169.7k6](/packages/nizsheanez-yii2-asset-converter)[trentrichardson/cakephp-shrink

Compiles, combines, and minifies javascript, coffee, less, scss, and css

1619.4k](/packages/trentrichardson-cakephp-shrink)

PHPackages © 2026

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