PHP Composer 2 downgrade 1.*

Nová verze Composer 2 není kompatibilní s Composer 1, má jiné plugin API a starší projekty např. v Zend Framework 3 nejdou instalovat.

Instalace Composer na Debian 10

wget -O composer-setup.php https://getcomposer.org/installer

sudo php composer-setup.php –install-dir=/usr/local/bin –filename=composer

All settings correct for using Composer
Downloading…

Composer (version 2.0.9) successfully installed to: /usr/local/bin/composer
Use it: php /usr/local/bin/composer

Downgrade na verzi 1.*

sudo composer self-update 1.10.20

Upgrading to version 1.10.20 (stable channel).

Use composer self-update –rollback to return to version 2.0.9