PHPackages                             laxity7/yii2-assets-free - 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. laxity7/yii2-assets-free

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

laxity7/yii2-assets-free
========================

A meta package that allows you to install yii2 without composer-asset-plugin.

2.0.17(7y ago)011MITPHP &gt;=5.4.0

Since Mar 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/laxity7/yii2-assets-free)[ Packagist](https://packagist.org/packages/laxity7/yii2-assets-free)[ RSS](/packages/laxity7-yii2-assets-free/feed)WikiDiscussions master Synced yesterday

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

Yii2 assets free composer package
=================================

[](#yii2-assets-free-composer-package)

[![License](https://camo.githubusercontent.com/b57f2e0c34d76cb92f0e75cd02d70de06e991d7ea28b80633c0a5ca3dcf27dd7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c6178697479372f796969322d6173736574732d667265652e737667)](https://github.com/laxity7/yii2-assets-free/blob/master/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/e69bf8a5248a24adeab13fba1abb830bf35252aa014c8f6fcbaadebbf34d1274/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6178697479372f796969322d6173736574732d667265652e737667)](https://packagist.org/packages/laxity7/yii2-assets-free)[![Total Downloads](https://camo.githubusercontent.com/3ad26592372c78f9caa880fc8fc3515a5f088080d52848bb946612ec8e85061c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6178697479372f796969322d6173736574732d667265652e737667)](https://packagist.org/packages/laxity7/yii2-assets-free)

A composer package that allows you to install [yii2](https://github.com/yiisoft/yii2) without [composer-asset-plugin](https://github.com/francoispluchino/composer-asset-plugin).

How to use?
-----------

[](#how-to-use)

Just require `laxity7/yii2-assets-free` instead (or after) of `yiisoft/yii2` in your `composer.json`.

Why?
----

[](#why)

Yii2 currently depends on Asset packages to make it really easy to create frontend applications as it directly provides Widgets and Javascript/CSS components out of the box. Therefore, the [composer-asset-plugin](https://github.com/francoispluchino/composer-asset-plugin) is used which allows to manage frontend dependencies directly in composer.json.

Sometimes however, these frontend components are not needed, e.g. if you use Yii to create a Console Application, Background workers or a REST API. So if you do not want to install the composer-asset-plugin on your production servers because you do not need any asset functionality anyway you may use this package instead of requiring `yiisoft/yii2` directly.

How does this work?
-------------------

[](#how-does-this-work)

Magic in [composer.json](https://github.com/laxity7/yii2-assets-free/blob/2.0.0/composer.json#L9-L14)

This package claims to "[provide](https://getcomposer.org/doc/04-schema.md#provide)" the required asset packages which are only available when composer-asset-plugin ist installed. In reallity no asset packages are installed, so this is only useful in cases [where you do not need them](#why).

What to do with assets?
-----------------------

[](#what-to-do-with-assets)

For example, to use the Debug module just add to the config

```
'components' => [
    'assetManager' => [
        'bundles' => [
            'yii\web\JqueryAsset' => [
                'sourcePath' => null,
                'js' => [
                    '//code.jquery.com/jquery-3.4.0.min.js',
                ]
            ],
        ],
        // or like this
        //'assetMap'   => [
        //    'jquery.js' => '//code.jquery.com/jquery-3.4.0.min.js',
        //],
    ],
],
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 94.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 ~59 days

Recently: every ~127 days

Total

20

Last Release

2584d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9b526de35a63bf1110afac0fd4273cd7ae65b360a56504364ff06c1c5ffc533?d=identicon)[laxity7](/maintainers/laxity7)

---

Top Contributors

[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (35 commits)")[![laxity7](https://avatars.githubusercontent.com/u/6792144?v=4)](https://github.com/laxity7 "laxity7 (2 commits)")

### Embed Badge

![Health badge](/badges/laxity7-yii2-assets-free/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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