October 17, 2020

How to upgrade to Composer 2

With the latest 2.0.0-RC2 release candidate version launched, the official release is just around the corner.

I have tested V2 personally and it seems much faster on my computer which is great because Composer V1 for some reason was very slow.

To update your Composer from V1 to V2 is really simple. All it takes is this command:

$ composer self-update --2

And if you want to rollback the version, it's also a very simple command:

$ composer self-update --rollback

That's all. Have fun with Composer 2!


Hello! My name is Jian Jye and I work on Laravel projects as my main job. If my article was helpful to you, a shoutout on Twitter would be awesome! I'm also available for hire if you need any help with Laravel. Contact me.