PHPackages                             mito/yii2-enhanced-assets - 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. mito/yii2-enhanced-assets

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

mito/yii2-enhanced-assets
=========================

Enhanced assets for Yii2

0.4.0(9y ago)039.0k↓30%BSD-3-ClausePHP

Since Sep 17Pushed 9y ago5 watchersCompare

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

READMEChangelogDependencies (1)Versions (28)Used By (0)

Enhanced assets for Yii2
========================

[](#enhanced-assets-for-yii2)

Enhanced assets for Yii2.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist mito/yii2-enhanced-assets "*"

```

or add

```
"mito/yii2-enhanced-assets": "*"

```

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

Usage
-----

[](#usage)

Extend your asset bundles form `\mito\assets\AssetBundle` or `\mito\assets\FallbackAssetBundle`. Create a `bundles.php` file in each assets directory, that returns an array of asset bundle class names.

Add the following to your console application configuration:

```
'controllerMap' => [
    'packages' => 'mito\assets\PackagesController',
    'assetscleanup' => 'mito\assets\CleanupController',
],

```

Add the following to your web application configuration:

```
'components' => [
    'assetManager' => [
        'class' => 'mito\assets\AssetManager',
    ],
],

```

Add the following to your console and web application configuration:

```
'components' => [
    'bundleManager' => [
        'class' => 'mito\assets\BundleManager',
        'deployBundles' => [],
    ],
],

```

If you have an asset bundle that is not in `bundles.php` and is not a dependency of a bundle in `bundles.php`, add it to `deployBundles`. Yii's default bundles are included in `defaultBundles`.

`yii packages` will return an array of all bundles in the `bundles.php` files.

`yii packages/deploy` will check the files in the bundles, and will touch the bundle's base directory if any file is newer than the base directory. This will cause Yii to publish the new version. You can also use `Yii::$app->bundleManager->deploy()`.

`yii assetscleanup` will delete old published asset bundles.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 88.6% 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 ~29 days

Recently: every ~101 days

Total

26

Last Release

3535d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40475?v=4)[mito](/maintainers/mito)[@mito](https://github.com/mito)

---

Top Contributors

[![nkovacs2](https://avatars.githubusercontent.com/u/9216060?v=4)](https://github.com/nkovacs2 "nkovacs2 (31 commits)")[![nkovacs](https://avatars.githubusercontent.com/u/2269242?v=4)](https://github.com/nkovacs "nkovacs (4 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/mito-yii2-enhanced-assets/health.svg)

```
[![Health](https://phpackages.com/badges/mito-yii2-enhanced-assets/health.svg)](https://phpackages.com/packages/mito-yii2-enhanced-assets)
```

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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