dev-master
9999999-dev https://github.com/JasLin/composer-yii2-local-extension-setup-scriptssetup local yii2 extension with composer scripts
MIT
The Requires
- php >=5.4.0
by JasLin
extension composer yii2 scripts
setup local yii2 extension with composer scripts
this script with help to generate local yii2 extension config of yii2 project, (*1)
your composer.json of your yii2 project should look like :, (*2)
{ "config" : { "vendor-dir" : "vendor" }, "require": { "jaslin/composer-yii2-local-extension-setup-scripts": "dev-master" }, "scripts" : { "post-autoload-dump" : "jaslin\\yii2\\composer\\ComposerScripts::postAutoloadDump" }, "extra" : { "local-psr-4" : [ " 'botwave\\\\rbac\\\\' => array($vendorDir . '/botwave/rbac'),", " 'botwave\\\\user\\\\' => array($vendorDir .'/botwave/user')," ], "local-yii2-extensions" : { "botwave/cms" :{ "name" : "botwave/cms", "version" : "dev-master", "alias" : { "@botwave/cms" : "<vendor-dir>/botwave/cms", "@botwave/cms/css" : "<vendor-dir>/botwave/cms/css" } }, "botwave/message" : { "name" : "botwave/message", "version" : "888888-dev", "alias" : { "@botwave/message" : "<vendor-dir>/botwave/message" } } } } }
this scripts will generate psr-4.php(for composer) and extensions.php (for yii2) with the configuration from the root package composer.json it will append the new configuration to the original config files., (*3)
setup local yii2 extension with composer scripts
MIT
extension composer yii2 scripts