Download the PHP package webimpress/composer-extra-dependency without Composer
On this page you can find all versions of the php package webimpress/composer-extra-dependency. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webimpress/composer-extra-dependency
More information about webimpress/composer-extra-dependency
Files in webimpress/composer-extra-dependency
Package composer-extra-dependency
Short Description Composer plugin to require extra dependencies
License BSD-2-Clause
Homepage https://github.com/webimpress/composer-extra-dependency
Informations about the package composer-extra-dependency
composer-extra-dependency
This composer plugin allows you to require composer dependencies in version
specified by user during the installation. It modifies the composer.json
file
and add required package in require
section.
This can be useful when your library supports multiple version of some dependencies and you'd like to force user to use an explicit dependency instead of depending on implicit dependencies from your library.
Usage
Require the package in your library:
Update your composer.json
file: in section extra.dependency
add package(s)
you'd like to install with your library:
Then, during installation of your library, user will be prompted:
After providing the version, composer.json
of the user will be update
(package will be added in require
section with version provided by user).
If user does not provide the version, plugin will try to find package in the
latest version matching platform requirements and other dependencies.
Here also composer.json
will be updated and package will be installed.
Plugin runs always on post update/install package to check if there are some
dependencies to require explicitly in user composer.json
file.
If dependency is already provided in user
composer.json
(require
orrequire-dev
section) the plugin is not going to do anything.Please note plugin works only in development interactive mode. It means when
--no-dev
or--no-interaction
flags are provided, plugin is not going to do anything.
All versions of composer-extra-dependency with dependencies
composer-plugin-api Version ^1.1