mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Allow global ignore-platform-req (#10616)
This commit is contained in:
parent
d584a259f6
commit
c3a41b944e
2 changed files with 28 additions and 1 deletions
|
@ -1174,3 +1174,11 @@ useful for plugin authors to identify what is firing when exactly.
|
|||
|
||||
If set to `1`, it is the equivalent of passing the `--no-dev` argument to `install` or
|
||||
`update`. You can override this for a single command by setting `COMPOSER_NO_DEV=0`.
|
||||
|
||||
### COMPOSER_IGNORE_PLATFORM_REQ or COMPOSER_IGNORE_PLATFORM_REQS
|
||||
|
||||
If `COMPOSER_IGNORE_PLATFORM_REQS` set to `1`, it is the equivalent of passing the `--ignore-platform-reqs` argument.
|
||||
Otherwise, specifying a comma separated list in `COMPOSER_IGNORE_PLATFORM_REQ` will ignore those specific requirements.
|
||||
|
||||
For example, if a development workstation will never run database queries, this can be used to ignore the requirement for the database extensions to be available.
|
||||
If you set `COMPOSER_IGNORE_PLATFORM_REQ=ext-oci8`, then composer will allow packages to be installed even if the `oci8` PHP extension is not enabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue