When I update my composer to add yii2-solr extension to my project, I encounter with an error like below:
yii2-solr
The \"yiisoft/yii2-composer\" plugin requi
Rollback composer to 1.x version - the said plugin does not work (yet) with composer 2.x (as discussed here):
sudo composer self-update --rollback