no-response-mate/composer-integration-plugin
最新稳定版本:0.3.0
Composer 安装命令:
composer require no-response-mate/composer-integration-plugin
包简介
Quick switching between integrations' dependencies
README 文档
README
Quick switching between integration dependencies
Installation
composer require --dev sylius-labs/composer-integration-plugin
Add this plugin to allowed plugins:
"config": { "allow-plugins": { "sylius-labs/composer-integration-plugin": true } },
Configuration
Basic integration configuration:
"extra": { "integration": { "my-integration": { "require": { "league/uri": "^6", "psr/http-factory": "^1" } } } }
With a custom APP_ENV variable if you're using .env files:
"extra": { "integration": { "my-integration": { ... "env": "my-integration-special-environment" } } }
If your .env files are located somewhere else than project root, you can point to their location using the integration-options.env-path node:
"extra": { "integration-options": { "env-path": "public/app/env/" }, "integration": { "my-integration": { ... "env": "my-integration-special-environment" } } }
The env-directory node takes in a path relative to your current working directory (usually project root).
Usage
Once you have your integrations configured you can switch between them by running:
composer integration my-integration
To return to your base composer dependencies simply run:
composer install
By default, no scripts are run when installing an integration, if you would like to enable them use the with-scripts option:
composer integration my-integration --with-scripts
The plugin uses the install command internally and as such, only install related scripts would be run.
统计信息
- 总下载量: 52.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-29