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. [Utility &amp; Helpers](/categories/utility)
4. /
5. iisns/yii2-assets-compress

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

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.6k1BSD-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 today

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 66% 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

3791d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10897212?v=4)[iisns](/maintainers/iisns)[@iisns](https://github.com/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

[stolz/assets

An ultra-simple-to-use assets management library

289527.4k8](/packages/stolz-assets)[sensiolabs/minify-bundle

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

57133.6k3](/packages/sensiolabs-minify-bundle)[fisharebest/laravel-assets

Asset management for Laravel

208.1k](/packages/fisharebest-laravel-assets)[lajax/yii2-asset-minifier

Runtime minification and combination of asset files.

1010.7k](/packages/lajax-yii2-asset-minifier)[tarunkorat/laravel-asset-cleaner

Safely detect and remove unused CSS, JS, SCSS and other assets from Laravel applications

735.0k1](/packages/tarunkorat-laravel-asset-cleaner)

PHPackages © 2026

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