Search code examples
phpcomposer-php

Is there a way to hide "funding" messages when running composer commands?


When using Composer, sometimes messages are displayed after installing or updating:

X packages you are using are looking for funding.
Use the `composer fund` command to find out more!

I want to know if there's a solution similar to this answer for npm, but for Composer.

Is there a way to hide the messages about projects needing funding? I checked the output of composer --help and didn't see any obvious flags.


Solution

  • You can change the setting COMPOSER_FUND to 0, this will suppress funding notices when installing - reference

    COMPOSER_FUND=0 composer install