gpt4 book ai didi

composer-php - 如何让 Composer 将版本号更新为 composer.json 中可用的最新版本?

转载 作者:行者123 更新时间:2023-12-04 12:28:15 26 4
gpt4 key购买 nike

在我的 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?

最佳答案

运行

composer require zendframework/zend-log


composer require --dev phpunit/phpunit

关于composer-php - 如何让 Composer 将版本号更新为 composer.json 中可用的最新版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45197446/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com