Composer 2 support in Symfony CLI and SymfonyCloud
is now available for testing. It has much better performance and memory usage.
It also improves the way packages are downloaded to lower the time it takes to
run commands like
composer install or
Even if Composer 2 is not stable yet, you can already use it in your projects.
For Symfony CLI,
symfony composer checks the version of Composer used in the
composer.lock file and tries to find a Composer binary named
composer2. If it fails, it falls back to the regular
composer file names. The binary can be in the current directory or in the
On SymfonyCloud, where
composer install is ran
by default, we are now using Composer version 1 or version 2 depending on the
composer.lock of your project. SymfonyCloud provides Composer binaries for
both versions (named
composer2) and uses
symfony composer to
automatically make the version choice. Feel free to test Composer 2 in a
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.