Locally when I run composer install
it doesn't show anything about suggestions. In our CI environment it provides a long list of suggestions I'd like to avoid. I want to see the output of what's being loaded from cache and that kind of thing, just don't want to see this. I've been through the docs and haven't been able to figure out how to hide this.
The suggestions are (among many others)...
symfony/security-core suggests installing symfony/expression-language (For using the expression voter)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
predis/predis suggests installing ext-phpiredis (Allows faster serialization and deserialization of the Redis protocol)
phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
phpseclib/phpseclib suggests installing pear-pear/PHP_Compat (Install PHP_Compat to get phpseclib working on PHP < 4.3.3.)
patchwork/utf8 suggests installing ext-intl (Use Intl for best performance)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
How can I hide this output?
If you do not want to choose requirements interactively, you can pass them to the command. If you do not specify a package, Composer will prompt you to search for a package, and given results, provide a list of matches to require. --dev: Add packages to require-dev. --dry-run: Simulate the command without actually doing anything.
This chapter documents all the available commands. To get help from the command-line, call composer or composer list to see the complete list of commands, then --help combined with any of those can give you more information. As Composer uses symfony/console you can call commands by short name if it's not ambiguous.
Multiple requirements can be ignored via wildcard. Deletes all content from Composer's cache directories. Lists the name, version and license of every package installed. Use --format=json to get machine-readable output. --timeout: Set the script timeout in seconds, or 0 for no timeout.
When you run composer install on a project with no composer.lock file, Composer will resolve the required packages and their versions and will store it in the composer.lock file before installing them. In this case, the project was not set up and you get notified about other suggested packages.
As of composer 1.6.3, there is a --no-suggest
option that hides all suggestions when running composer install or composer update.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With