All contributions

composer/composer

Composer

The dependency manager for PHP: it installs and updates a project's libraries from its composer.json.

Language
PHP
GitHub stars
29,590
Merged changes
1
Project site
getcomposer.org

What we changed

The docs and the help of the composer config command say which keys support --json and --merge: besides extra.*, also the policy.* and audit.ignore keys. For the other keys the flags are ignored, and the text now says so.

What this work shows

  • The composer config command
  • Composer audit and policy settings
  • CLI option help in Symfony Console
What was broken

The --json and --merge docs named only extra.*

The docs said --json and --merge apply only to extra.* keys, and the command help for --merge added only audit.ignore. In the code the flags also worked for policy.*.ignore, policy.advisories.ignore-id and audit.ignore-abandoned, and for those keys --merge does not need --json.

How we fixed it

The full key list in the docs and help

In doc/03-cli.md and in the option help in ConfigCommand we listed every supported key, separately for --json and for --merge. We also noted that the flags are ignored for all other keys.

#13111

Merged change 1

  1. #13111 Clarify which config keys support --json and --merge Merged 8 October 2026

What it taught us

Docs that describe less than the code does mislead as much as a bug. A list of the supported keys in the command help spares users guesswork and trial runs on a live config.

More about this technology: PHP

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.