somov / composer-asset-installer
Composer asset installer
Installs: 275
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- composer-plugin-api: ^1.0 || ^2.0
Requires (Dev)
- composer/composer: 1.6.* || ^2.0
This package is auto-updated.
Last update: 2025-03-10 06:43:42 UTC
README
##Composer asset installer
Asset installer its composer installer plugin.
Makes it possible to install the dependency package directory vendor/npm-asset or vendor/bower-asset Useful to provide assets compatible yii2 php framework.
Destination package must have type composer-asset
Extra options
Provide extra options in package section "extra"
Option | Default | Info |
---|---|---|
installer-asset-type: string | 'npm' | npm or bower. Installer use this value to make destination folder |
installer-asset-suffix: string | '-asset' | The suffix of asset type |
installer-asset-name: string | '' | If provided value. Installer replace package name |
Example composer.json
{ "name": "somov/composer-asset-installer-test-asset", "type": "composer-asset", "require": { "somov/composer-asset-installer": "*" }, "extra": { "installer-asset-type": "bower", "installer-asset-name": "test-asset" } }
The install path is vendor/bower-asset/test-asset/