The config key is intended to be used by Composer itself, Composer plugins should use the key extra. Using config key does not currently AFAIK cause any issues, but may cause problems in the future.
the config key is described as „Composer options.“
the extra key is described as „Arbitrary extra data that can be used by plugins, for example, package of type composer-plugin may have a 'class' key defining an installer class name.“
The
config
key is intended to be used by Composer itself, Composer plugins should use the keyextra
. Usingconfig
key does not currently AFAIK cause any issues, but may cause problems in the future.See https://getcomposer.org/schema.json:
config
key is described as „Composer options.“extra
key is described as „Arbitrary extra data that can be used by plugins, for example, package of type composer-plugin may have a 'class' key defining an installer class name.“