zendframework / zend-captcha

Captcha component from Zend Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem using recaptcha

joepsyko opened this issue · comments

I'm trying to migrate my projet from zf2 to zf3 and now I'm stucked with this problem with recaptcha. Apparently there are some kind of dependencies inside ZendService\ZendService_ReCaptcha that conflicts with zf3.

How can I fix the problem?

Here is the error after executing:

php composer.phar require zendframework/zendservice-recaptcha

Using version ^2.0 for zendframework/zendservice-recaptcha
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)         
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - zendframework/zend-version 2.4.9 requires zendframework/zend-json 2.4.9 -> satisfiable by zendframework/zend-json[2.4.9] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.8 requires zendframework/zend-json 2.4.8 -> satisfiable by zendframework/zend-json[2.4.8] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.7 requires zendframework/zend-json 2.4.7 -> satisfiable by zendframework/zend-json[2.4.7] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.6 requires zendframework/zend-json 2.4.6 -> satisfiable by zendframework/zend-json[2.4.6] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.5 requires zendframework/zend-json 2.4.5 -> satisfiable by zendframework/zend-json[2.4.5] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.4 requires zendframework/zend-json 2.4.4 -> satisfiable by zendframework/zend-json[2.4.4] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.3 requires zendframework/zend-json 2.4.3 -> satisfiable by zendframework/zend-json[2.4.3] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.2 requires zendframework/zend-json 2.4.2 -> satisfiable by zendframework/zend-json[2.4.2] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.10 requires zendframework/zend-json 2.4.10 -> satisfiable by zendframework/zend-json[2.4.10] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.1 requires zendframework/zend-json 2.4.1 -> satisfiable by zendframework/zend-json[2.4.1] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.4.0 requires zendframework/zend-json 2.4.0 -> satisfiable by zendframework/zend-json[2.4.0] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.9 requires zendframework/zend-json 2.3.9 -> satisfiable by zendframework/zend-json[2.3.9] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.8 requires zendframework/zend-json 2.3.8 -> satisfiable by zendframework/zend-json[2.3.8] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.7 requires zendframework/zend-json 2.3.7 -> satisfiable by zendframework/zend-json[2.3.7] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.6 requires zendframework/zend-json 2.3.6 -> satisfiable by zendframework/zend-json[2.3.6] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.5 requires zendframework/zend-json 2.3.5 -> satisfiable by zendframework/zend-json[2.3.5] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.4 requires zendframework/zend-json 2.3.4 -> satisfiable by zendframework/zend-json[2.3.4] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.3 requires zendframework/zend-json 2.3.3 -> satisfiable by zendframework/zend-json[2.3.3] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.2 requires zendframework/zend-json 2.3.2 -> satisfiable by zendframework/zend-json[2.3.2] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.1 requires zendframework/zend-json 2.3.1 -> satisfiable by zendframework/zend-json[2.3.1] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.3.0 requires zendframework/zend-json 2.3.0 -> satisfiable by zendframework/zend-json[2.3.0] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.9 requires zendframework/zend-json 2.2.9 -> satisfiable by zendframework/zend-json[2.2.9] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.8 requires zendframework/zend-json 2.2.8 -> satisfiable by zendframework/zend-json[2.2.8] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.7 requires zendframework/zend-json 2.2.7 -> satisfiable by zendframework/zend-json[2.2.7] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.6 requires zendframework/zend-json 2.2.6 -> satisfiable by zendframework/zend-json[2.2.6] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.5 requires zendframework/zend-json 2.2.5 -> satisfiable by zendframework/zend-json[2.2.5] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.4 requires zendframework/zend-json 2.2.4 -> satisfiable by zendframework/zend-json[2.2.4] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.3 requires zendframework/zend-json 2.2.3 -> satisfiable by zendframework/zend-json[2.2.3] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.2 requires zendframework/zend-json 2.2.2 -> satisfiable by zendframework/zend-json[2.2.2] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.10 requires zendframework/zend-json 2.2.10 -> satisfiable by zendframework/zend-json[2.2.10] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.1 requires zendframework/zend-json 2.2.1 -> satisfiable by zendframework/zend-json[2.2.1] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.2.0 requires zendframework/zend-json 2.2.0 -> satisfiable by zendframework/zend-json[2.2.0] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.1.6 requires zendframework/zend-json 2.1.6 -> satisfiable by zendframework/zend-json[2.1.6] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.1.5 requires zendframework/zend-json 2.1.5 -> satisfiable by zendframework/zend-json[2.1.5] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.1.4 requires zendframework/zend-json 2.1.4 -> satisfiable by zendframework/zend-json[2.1.4] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.1.3 requires zendframework/zend-json 2.1.3 -> satisfiable by zendframework/zend-json[2.1.3] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.1.2 requires zendframework/zend-json 2.1.2 -> satisfiable by zendframework/zend-json[2.1.2] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.1.1 requires zendframework/zend-json 2.1.1 -> satisfiable by zendframework/zend-json[2.1.1] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.1.0 requires zendframework/zend-json 2.1.0 -> satisfiable by zendframework/zend-json[2.1.0] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.0.8 requires zendframework/zend-json 2.0.8 -> satisfiable by zendframework/zend-json[2.0.8] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.0.7 requires zendframework/zend-json 2.0.7 -> satisfiable by zendframework/zend-json[2.0.7] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.0.6 requires zendframework/zend-json 2.0.6 -> satisfiable by zendframework/zend-json[2.0.6] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.0.5 requires zendframework/zend-json 2.0.5 -> satisfiable by zendframework/zend-json[2.0.5] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.0.4 requires zendframework/zend-json 2.0.4 -> satisfiable by zendframework/zend-json[2.0.4] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.0.3 requires zendframework/zend-json 2.0.3 -> satisfiable by zendframework/zend-json[2.0.3] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.5.1 requires zendframework/zend-json ~2.5 -> satisfiable by zendframework/zend-json[2.5.0, 2.5.1, 2.5.2, 2.6.0, 2.6.1] but these conflict with your requirements or minimum-stability.
    - zendframework/zend-version 2.5.0 requires zendframework/zend-json ~2.5.0 -> satisfiable by zendframework/zend-json[2.5.0, 2.5.1, 2.5.2] but these conflict with your requirements or minimum-stability.
    - Conclusion: remove zendframework/zend-servicemanager-di 1.1.0
    - Conclusion: don't install zendframework/zend-servicemanager-di 1.1.0
    - zendframework/zendservice-recaptcha 2.0.0 requires zendframework/zend-version >=2.0.0rc4 -> satisfiable by zendframework/zendframework[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.10, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9], zendframework/zend-version[2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.2.0, 2.2.1, 2.2.10, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.2.7, 2.2.8, 2.2.9, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.10, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9, 2.5.0, 2.5.1].
    - zendframework/zendservice-recaptcha 2.0.1 requires zendframework/zend-version >=2.0.0 -> satisfiable by zendframework/zendframework[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.10, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9], zendframework/zend-version[2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.2.0, 2.2.1, 2.2.10, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.2.7, 2.2.8, 2.2.9, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.10, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9, 2.5.0, 2.5.1].
    - zendframework/zendframework 2.3.0 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.3.1 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.3.2 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.3.3 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.3.4 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.3.5 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.3.6 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.3.7 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.3.8 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.3.9 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.0 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.1 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.10 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.2 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.3 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.4 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.5 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.6 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.7 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.8 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - zendframework/zendframework 2.4.9 conflicts with zendframework/zend-servicemanager-di[1.1.0].
    - Installation request for zendframework/zend-servicemanager-di (locked at 1.1.0, required as ^1.0) -> satisfiable by zendframework/zend-servicemanager-di[1.1.0].
    - Installation request for zendframework/zendservice-recaptcha ^2.0 -> satisfiable by zendframework/zendservice-recaptcha[2.0.0, 2.0.1].

I created a pull request for the repository https://github.com/zendframework/ZendService_ReCaptcha/

I hope someone can fix this.

I think that this now fixed with v2.7.0.

Ok it seems to work.
What about the "lang" options? I saw in the doc that is no longer supported, how I can set the language of ReCaptcha now?

Looking at Google's documentation for v2 of the API, does "hl" work?

We could probably add BC support for 'lang' -> 'hl' if you want to PR it ?

Ok, I figured out how to change the language, thx!