如何让作曲家将版本号更新为composer.json中最新的版本号?

时间:2017-07-19 17:37:44

标签: composer-php composer.json

在我的composer.json配置文件中,我有:

"require": {
    "zendframework/zend-log" : "~2.3",
 },
"require-dev": {
    "phpunit/phpunit": "^5.4"
 } 

我想:

"require": {
   "zendframework/zend-log" : "^2.9",
},
"require-dev": {
    "phpunit/phpunit": "^6.2"
 } 

请注意版本号更改

如何?我希望它能够自动完成,而不必查找每个可用的最新版本并手动编辑。

有这个问题,但没有帮助:How to resolve package not found error when trying to make the composer get the latest package versions?

1 个答案:

答案 0 :(得分:3)

运行

composer require zendframework/zend-log

composer require --dev phpunit/phpunit