cebe / assetfree-yii2
A meta package that allows you to install yii2 without composer-asset-plugin.
Installs: 83 896
Dependents: 5
Suggesters: 0
Security: 0
Stars: 50
Watchers: 8
Forks: 4
Open Issues: 0
Requires
- php: >=5.4.0
- yiisoft/yii2: =2.0.48.1
- dev-master
- 2.0.48.1
- 2.0.48
- 2.0.47
- 2.0.46
- 2.0.45
- 2.0.44
- 2.0.43
- 2.0.42.1
- 2.0.42
- 2.0.41.1
- 2.0.41
- 2.0.40
- 2.0.39.3
- 2.0.39.2
- 2.0.39.1
- 2.0.39
- 2.0.38
- 2.0.37
- 2.0.36
- 2.0.35
- 2.0.34
- 2.0.33
- 2.0.32
- 2.0.31
- 2.0.30
- 2.0.29
- 2.0.28
- 2.0.27
- 2.0.26
- 2.0.25
- 2.0.24
- 2.0.23
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16.1
- 2.0.16
- 2.0.15.1
- 2.0.15
- 2.0.14.2
- 2.0.14.1
- 2.0.14
- 2.0.13.3
- 2.0.13.2
- 2.0.13.1
- 2.0.13
- 2.0.12.2
- 2.0.12.1
- 2.0.12
- 2.0.11.2
- 2.0.11.1
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
This package is auto-updated.
Last update: 2024-10-30 01:46:47 UTC
README
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.