2017 © Pedro Peláez
 

library recaptcha

A PHP ZendFramework 2.0 (ZF2) - Google ReCAPTCHA Adapter

image

creative-delta/recaptcha

A PHP ZendFramework 2.0 (ZF2) - Google ReCAPTCHA Adapter

  • Friday, September 16, 2016
  • by goplan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

recaptcha

A PHP ZF2 - ReCAPTCHA Adapter (Google), (*1)

This recaptcha class is used as an adapter to ZF2 default CAPTCHA form element. It provides both form validation and element view rendering., (*2)

Two major inputs are a public key and a private key. The public key is the site key, while the private key is the secret. Both keys are acquired from Google., (*3)

An example code is as below:, (*4)

        $reCaptcha = new CDReCaptcha(); // This recaptcha class (CDReCaptcha is an alias to ReCaptcha)
        $reCaptcha->setPublicKey($publicKey);
        $reCaptcha->setPrivateKey($privateKey);
        $captchaElement = new Captcha('g-recaptcha-response');
        $captchaElement->setCaptcha($reCaptcha);

(The $captchaElement is then added to a form object), (*5)

If you need assistance or further improvement of this package, feel free to email me at ducanh.ke@gmail.com, (*6)

The Versions

16/09 2016

dev-master

9999999-dev https://github.com/GoPlan/recaptcha

A PHP ZendFramework 2.0 (ZF2) - Google ReCAPTCHA Adapter

  Sources   Download

MIT

by Duc-Anh Le