Install specific version of package using Composer
I am trying to install a specific version of a package using Composer. I tried composer install and Composer require but they are installing the latest version of the package I am trying to install. What if a want a previous version?
composer require vendor/package:version
例如:
composer require refinery29/test-util:0.10.2
just use php composer.phar require
For example :
php composer.phar require doctrine/mongodb-odm-bundle 3.0
Also available with install.
https://getcomposer.org/doc/03-cli.md#require https://getcomposer.org/doc/03-cli.md#install
在版本号中添加双引号以使用插入符号运算符。
composer require middlewares/whoops "^0.4"
链接地址: http://www.djcxy.com/p/27646.html
上一篇: 如何用npm安装PhantomJS v2
下一篇: 使用Composer安装特定版本的软件包