But what if you have to switch composer version also. So of course you can. To do so use theese two commands.
If you have to work on legacy projects and you want to switch PHP version you can read about it in this article.
How to switch php version on Mac OS
But what if you have to switch composer version also. So of course you can. To do so use theese two commands.
composer self-update --1
composer self-update --2