PHPackages                             iisns/yii2-assets-compress - 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. iisns/yii2-assets-compress

ActiveYii2-extension

iisns/yii2-assets-compress
==========================

This solution enables you to dynamically combine js and css files to optimize the html page.

v1.0.0(10y ago)51.5k1BSD-3-ClausePHP

Since Feb 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/iisns/yii2-assets-compress)[ Packagist](https://packagist.org/packages/iisns/yii2-assets-compress)[ RSS](/packages/iisns-yii2-assets-compress/feed)WikiDiscussions master Synced 2mo ago

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

Automatically compile and merge files js + css
==============================================

[](#automatically-compile-and-merge-files-js--css)

This solution enables you to dynamically combine js and css files to optimize the html page.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist iisns/yii2-assets-compress "*"

```

or add

```
"iisns/yii2-assets-compress": "*"

```

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

Usage
-----

[](#usage)

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

```
//App config
[
    'bootstrap'    => ['assetsCompress'],
    'components'    => [
    //....
        'assetsAutoCompress' =>
        [
            'class' => '\iisns\assets\AssetsCompressComponent',
            'enabled'           => true,
            'jsCompress'        => true,
            'cssFileCompile'    => true,
            'jsFileCompile'     => true,
        ],
    //....
    ]
]
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3743d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49f2e81f14f5d22ab46d0fdf3e691d3824f2f8d29686d59be96116ba602412d0?d=identicon)[iisns](/maintainers/iisns)

---

Top Contributors

[![shi-yang](https://avatars.githubusercontent.com/u/5102567?v=4)](https://github.com/shi-yang "shi-yang (2 commits)")

---

Tags

cssJScompressyii2assetsiisns

### Embed Badge

![Health badge](/badges/iisns-yii2-assets-compress/health.svg)

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

###  Alternatives

[skeeks/yii2-assets-auto-compress

Automatically compile and merge files js + css + html in yii2 project

162437.6k6](/packages/skeeks-yii2-assets-auto-compress)[rmrevin/yii2-minify-view

Yii2 View component with auto minification css &amp; js in runtime

194302.3k7](/packages/rmrevin-yii2-minify-view)[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[lajax/yii2-asset-minifier

Runtime minification and combination of asset files.

1010.4k](/packages/lajax-yii2-asset-minifier)[sensiolabs/minify-bundle

Assets Minifier (CSS, JS) for Symfony &amp; Minify integration in Asset Mapper

5694.9k1](/packages/sensiolabs-minify-bundle)[fisharebest/laravel-assets

Asset management for Laravel

208.1k](/packages/fisharebest-laravel-assets)

PHPackages © 2026

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