Skip to content

srggroup/zf2nocaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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