Switch between major composer versions

Switch between major composer versions

We all should be on composer 2 now for a while, but apparently not everybody is yet. It's very simple to upgrade, but also to downgrade.

Upgrade with:

composer self-update --2

And the downgrade is basically the same:

composer self-update --1

I guess this will stay the same for the next major version, but we'll see.