composer

1、查看当前composr版本
composer -V

2、当前composer更新为最新版

composer self-update
3、更新到指定版本

composer self-update 2.2.3

4、版本回滚到安装的上一个版本

composer self-update –rollback

5、版本更新并删除旧版本的备份
composer self-update –clean-backups