---
title: "Composer: --json and --merge in the config command | VulCode"
description: "A docs fix in Composer, the PHP dependency manager: which config command keys support --json and --merge, including the policy.* and audit.ignore keys."
url: "https://vulcode.com/en/opensource/contributions/composer"
lang: "en"
---

[All contributions](https://vulcode.com/en/opensource/contributions)

composer/composer

# Composer

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

[See the repository](https://github.com/composer/composer) [All contributions](https://vulcode.com/en/opensource/contributions)

- **Language**: PHP
- **GitHub stars**: 29,590
- **Merged changes**: 1
- **Project site**: [getcomposer.org](https://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](https://github.com/composer/composer/pull/13111)

## Merged change 1

- [#13111 Clarify which config keys support --json and --merge Merged 8 October 2026](https://github.com/composer/composer/pull/13111)

## 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](https://vulcode.com/en/technologies/php)

## Other projects we write code for

- [**PHPMailer** PHP · 22,347 stars The classic PHP library for sending email, used by WordPress and many other systems.](https://vulcode.com/en/opensource/contributions/phpmailer)

- [**Monolog** PHP · 21,407 stars A PHP logging library that sends records to files, sockets, inboxes, databases and web services. Symfony and Laravel use it, among others.](https://vulcode.com/en/opensource/contributions/monolog)

- [**Carbon** PHP · 16,583 stars A PHP DateTime extension for working with dates, standard in the Laravel ecosystem.](https://vulcode.com/en/opensource/contributions/carbon)

- [**Whoops** PHP · 13,231 stars A PHP library that turns uncaught exceptions into a readable error page with the stack trace, known from Laravel.](https://vulcode.com/en/opensource/contributions/whoops)

- [**ramsey/uuid** PHP · 12,642 stars A PHP library for generating universally unique identifiers (UUIDs).](https://vulcode.com/en/opensource/contributions/ramsey-uuid)

- [**Doctrine Lexer** PHP · 11,141 stars A base for lexers used by recursive descent parsers in PHP, used by Doctrine ORM among others.](https://vulcode.com/en/opensource/contributions/doctrine-lexer)

## Describe your project.

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

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)
