DEV Community

Cover image for Downgrade composer from 2.x to 1.x via brew
Sascha Eggenberger
Sascha Eggenberger

Posted on • Updated on • Originally published at saschaeggi.Medium

Downgrade composer from 2.x to 1.x via brew

You just upgraded your brew packages and composer updated itself to version 2.x but you still need version 1.x? This is how you can downgrade (& upgrade again):

Show available versions of composer:

brew log composer

For me the latest 1.x version to date is: composer 1.10.15

Let's downgrade

composer self-update 1.10.15

To switch back to the 2.x version use

composer self-update --rollback

Discussion (2)

Collapse
actouf profile image
Julien actouf • Edited on

Let's downgrade
composer self-update --1

  --1                        Force an update to the stable channel, but only use 1.x versions
  --2                        Force an update to the stable channel, but only use 2.x versions
Enter fullscreen mode Exit fullscreen mode
Collapse
mmanreza profile image
Michael Manreza

This is very helpful. Thank you so much!