我正在使用WAMP系统上的Zend 3 *。
更新作曲家失败,并显示以下错误消息:
作曲家需要zendframework / zend-crypt
- paragonie / random_compat v9.99.99需要php ^ 7->您的PHP版本(5.6.31)不满足该要求。
- paragonie / random_compat v9.99.99需要php ^ 7->您的PHP版本(5.6.31)不满足该要求。
- paragonie / random_compat的安装请求(锁定在v9.99.99)-> paragonie / random_compat [v9.99.99]可以满足。
一个旁注:我已经安装了crypt,并且可以正常工作,只是因为找不到浏览器消息bcrypt,所以我尝试再次安装。
我的composer.json如下所示:
{
"name" : "zendframework/skeleton-application",
"description" : "Skeleton Application for Zend Framework zend-mvc applications",
"type" : "project",
"license" : "BSD-3-Clause",
"keywords" : [
"framework",
"mvc",
"zf"
],
"homepage" : "http://framework.zend.com/",
"minimum-stability" : "dev",
"prefer-stable" : true,
"require" : {
"php" : "^5.6 || ^7.0",
"zendframework/zend-component-installer" : "^1.0 || ^0.7 || ^1.0.0-dev@dev",
"zendframework/zend-mvc" : "^3.1",
"zfcampus/zf-development-mode" : "^3.0",
"zendframework/zend-cache" : "^2.7.1",
"zendframework/zend-db" : "^2.10",
"zendframework/zend-mvc-form" : "^1.0",
"zendframework/zend-json" : "^3.0",
"zendframework/zend-log" : "^2.9",
"zendframework/zend-mvc-console" : "^1.1.10",
"zendframework/zend-mvc-i18n" : "^1.0",
"zendframework/zend-mvc-plugins" : "^1.0.1",
"zendframework/zend-psr7bridge" : "^0.2.2",
"zendframework/zend-session" : "^2.7.1",
"zendframework/zend-servicemanager-di" : "^1.0",
"zendframework/zend-paginator" : "^2.8",
"zendframework/zend-servicemanager" : "^3.3",
"zendframework/zend-validator" : "^2.10",
"zendframework/zend-inputfilter" : "^2.8",
"zendframework/zend-form" : "^2.12",
"zendframework/zend-authentication" : "^2.6",
"zendframework/zend-crypt" : "^3.3"
},
"autoload" : {
"psr-4" : {
"Application\\" : "module/Application/src/",
"Stammdaten\\" : "module/Stammdaten/src"
}
},
"autoload-dev" : {
"psr-4" : {
"ApplicationTest\\" : "module/Application/test/"
}
},
"scripts" : {
"cs-check" : "phpcs",
"cs-fix" : "phpcbf",
"development-disable" : "zf-development-mode disable",
"development-enable" : "zf-development-mode enable",
"development-status" : "zf-development-mode status",
"post-create-project-cmd" : "@development-enable",
"serve" : "php -S 0.0.0.0:8080 -t public public/index.php",
"test" : "phpunit"
},
"require-dev" : {
"zendframework/zend-developer-tools" : "^1.1.0",
"zendframework/zend-test" : "^3.0.1"
}
}
WAMP也显示此版本:
只有我的命令箱确认了以上错误,它确实显示了php 5.6.31。
我的第一个问题是,为什么呢?为什么不使用新项目而不自动使用服务器版本? 最后,如何更改为正确的版本?
答案 0 :(得分:-2)
直播很容易。
因为它是在使用bcrypt之前运行的,所以我四处搜寻,并且作曲家更新和服务器重置带来了成功。