Get support for cebe/assetfree-yii2

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

cebe/assetfree-yii2

cebe/assetfree-yii2 composer package

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

How to use?

Just require cebe/assetfree-yii2 instead of yiisoft/yii2 in your composer.json.

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 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?

Magic: https://github.com/cebe/assetfree-yii2/blob/2.0.0/composer.json#L9-L14 :)

This package claims to "provide" the required asset packages which are only available when composer-asset-plugin is installed. In reallity no asset packages are installed, so this is only useful in cases where you do not need them.

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2