Composer 2.0 released
The new composer version is available with a lot of new functionalities. Take a look at the news and update your Composer right now.
Composer
For me, Composer was a milestone in PHP’s history, such as PHP 7. Composer allows us (PHP Developers) to stop duplicating code and start reusing it in an easy and fast way. Today you can find an incredible number of packages on GitHub, and with one command, you can install them in your project. I am sure that without Composer, PHP wouldn’t be the same.
Updating
For updating your Composer, you need to open the terminal (if you have a global installation) and run one of the following commands:
- Use
composer self-update --preview
to try the latest RC version (2.x). - Use
composer self-update --snapshot
to try the latest dev build (2.x). - Use
composer self-update --stable
to go back to stable releases (1.x for now). - Use
composer self-update --1
in CI/scripts, if you want to pin Composer to 1.x until you are ready to migrate, this will ensure you stay on 1.x releases even once a 2.0 stable comes out.
Speeding up and optimizing
The performance was improved in this release. Now it doesn’t consider packages already…