Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 612 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 612 Bytes

ZF2NoCaptcha

This Laminas Captcha adapter uses Google's reCAPTCHA php library (see here: https://github.com/google/recaptcha).

##USAGE

  • Pull it from composer
composer require srggroup/zf2nocaptcha
  • Define the helper in your Laminas module config:
'view_helpers'=>array(
	'invokables'=>array(
		'recaptcha.helper'=>'NoCaptcha\NoCaptchaHelper'
	)
)
  • Integrate it into the form like the standard laminas recaptcha element
$adapter = new \NoCaptcha\NoCaptchaAdapter($siteKey, $secreteKey);

I've used some code from this repository: https://github.com/szmnmichalowski/ZF2-NoCaptcha