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.
Advertisement
Answer
There is no specific flag to target those two lines.
You can always use --quiet
to get rid of all output, and have a completely silent run.
If for some reason you are particularly bothered by those two lines, but do not want to lose the rest of the output, you could always pipe stderr
through grep
and exclude those lines:
composer update 2> >(grep -v "composer fund" | grep -v "looking for funding")
Which results in:
Notice in the screenshot above the conspicuous lack of any reference to funding.
If all this is worth doing or not, I’ll leave up to you.