PHPackages                             siddthartha/yii2-asset-combiner - 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. siddthartha/yii2-asset-combiner

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

siddthartha/yii2-asset-combiner
===============================

Asset combiner for Yii2

0139PHP

Since Apr 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/siddthartha/yii2-asset-combiner)[ Packagist](https://packagist.org/packages/siddthartha/yii2-asset-combiner)[ RSS](/packages/siddthartha-yii2-asset-combiner/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Asset combiner for Yii 2
========================

[](#asset-combiner-for-yii-2)

Yii 2 extension to compress and concatenate assets

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

[](#installation)

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

Either run

```
$ composer require siddthartha/yii2-asset-combiner
```

or add

```
"siddthartha/yii2-asset-combiner": "*"

```

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

Конфигурация
------------

[](#конфигурация)

```
        'view' => [
            // asset combiner config
            'class' => yii\web\View::className(),
            'as assetCombiner' => [
                'class' => \AssetCombiner\AssetCombinerBehavior::className(),

                // вкл-выкл, можно мерджить в конфигах в зависимости от environment dev, master, local
                'enabled' => true,

                // исключения из компиляции
                // можно указывать здесь (вендорные ассеты), а можно в конкретном ассете если наш
                // publishOptions = [ 'monolith' => false ] // принудительно выкл
                'exclude' => [
                ],
                /**/
                'filterJs' => [
                    'class' => \AssetCombiner\filters\UglifyJsFilter::className(),
                    'sourceMap' => false,
                    'compress' => false,
                    'mangle' => false,
                    'beautify' => true,
                    'keepFunctionNames' => true,
                    'keepComments' => true,
                ],
                /**/
                'filterCss' => [
                    'class' => \AssetCombiner\filters\UglifyCssFilter::className(),
                    'sort' => true,
                ],
                /**/
            ],
            // end of asset combiner config
            ...
        ],
```

### Для работы фильтров

[](#для-работы-фильтров)

`sudo npm -g install uglifyjs``sudo npm -g install uglifycss`

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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://avatars.githubusercontent.com/u/627326?v=4)[Anton Sadovnikov](/maintainers/siddthartha)[@siddthartha](https://github.com/siddthartha)

---

Top Contributors

[![tQuant](https://avatars.githubusercontent.com/u/7368485?v=4)](https://github.com/tQuant "tQuant (9 commits)")[![siddthartha](https://avatars.githubusercontent.com/u/627326?v=4)](https://github.com/siddthartha "siddthartha (4 commits)")

### Embed Badge

![Health badge](/badges/siddthartha-yii2-asset-combiner/health.svg)

```
[![Health](https://phpackages.com/badges/siddthartha-yii2-asset-combiner/health.svg)](https://phpackages.com/packages/siddthartha-yii2-asset-combiner)
```

PHPackages © 2026

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