srggroup/zf2nocaptcha

Google NoCaptcha for Laminas

v0.4 2022-11-22 13:15 UTC

This package is not auto-updated.

Last update: 2024-04-21 06:14:43 UTC


README

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