在Symfony2中安装EWZRecaptchable
我使用的是symfony 2.4.0,我想安装EWZrecaptchable,以便在表单中添加验证码,因此我在composer.json中添加了这一行在Symfony2中安装EWZRecaptchable,symfony,bundle,recaptcha,Symfony,Bundle,Recaptcha,我使用的是symfony 2.4.0,我想安装EWZrecaptchable,以便在表单中添加验证码,因此我在composer.json中添加了这一行 "require": { //... "excelwebzone/recaptcha-bundle": "2.0.*" //... } 我运行这个命令 composer update 但是它没有成功安装包,这是我在命令中得到的错误消息 Your requirements could n
"require": {
//...
"excelwebzone/recaptcha-bundle": "2.0.*"
//...
}
我运行这个命令
composer update
但是它没有成功安装包,这是我在命令中得到的错误消息
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package excelwebzone/recaptcha-bundle could not be found in
any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common
problems.
无法将您的需求解析为一组可安装的软件包。
问题1
-在中找不到请求的包excelwebzone/recaptcha捆绑包
任何版本的软件包名称都可能有输入错误。
潜在原因:
-软件包名称中的输入错误
-根据您的min,该软件包的版本不够稳定
最小稳定设置
有关更多详细信息,请参阅。
请阅读以了解更多常见问题
问题。
请注意,这是指向我要安装的捆绑包的Github链接:
有什么想法吗
注意事项:
- 我使用命令行作为管理员
- 我还测试了这一行:“excelwebzone/recaptcha包”:“开发人员管理员”
- 当我将最小稳定性设置设置为:“dev”或“stable”时,结果也是一样的
"excelwebzone/recaptcha-bundle": "dev-master"
因为2.0.x-dev
正在开发中。或者使用旧的稳定版本:
"excelwebzone/recaptcha-bundle": "v1.0.0"
Victor您完全正确。不过,有些人在版本控制方面可能仍然会遇到问题。 除非使用完全相同的1.0版本,否则仍然会有问题 因此,在完成以下步骤后:
composer require "excelwebzone/recaptcha-bundle"
您必须添加版本1.0,如:
Please provide a version constraint for the excelwebzone/recaptcha-bundle requirement: 1.0.*
我已经试过使用dev master了,但是没有成功…我将尝试使用“v1.0.0”关于
“excelwebzone/recaptcha bundle”:“*”
?我正在等待“v1.0.0”…我也将尝试使用“*”。谢谢+1以及recaptcha bundle
与“*”
一起安装的是什么版本?我认为最好是”~1.0*“
,我会用so:)也许这个核心会被更新。但是核心2.0
可能与1.0
不同,并且您的代码在更新后停止工作谢谢我亲爱的朋友,+1:D