多版本 PHP 环境下,使用指定版本运行composer

1、下载 composer.phar 文件:

wget https://getcomposer.org/download/1.6.5/composer.phar

2、默认 PHP 版本使用:

composer install

3、指定 PHP 版本使用:

php72 composer.phar install

Enjoy it !

原文地址:https://www.cnblogs.com/daizhongxing/p/13086781.html