Open michalbundyra opened 6 years ago
@basz the plugin before also looks for installed dependencies, not only these defined in root composer. If installed package has been found it was just added into root composer.
Change in this PR provide functionality to choose between packages to install (and as you know - I'm going to use it in http-middleware-compatibility
to allow choose between http-middleware
and http-server-middleware
).
New feature. Now we can define list of dependencies and give user a choice which one should be installed. In case your library is compatible with many libraries, and you want force user to choose one of them and give them a list of supported libraries to choose. Configuration for this new feature is the following (
extra
section incomposer.json
):And user on composer update will be prompted with "Question" and list of packages:
User will be prompted only when none of these packages are not installed. If there is at least one package installed or defined in root composer user will be not prompted.
/cc @basz @weierophinney