srggroup / zf2nocaptcha
Google NoCaptcha for Laminas
Installs: 230
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/srggroup/zf2nocaptcha
Requires
- php: ^8.3 | ^8.4
- google/recaptcha: ^1.3.1
- laminas/laminas-captcha: ^2.13.0
- laminas/laminas-form: ^3.21.0
- laminas/laminas-http: ^2.22.0
Requires (Dev)
- srggroup/srg_standards: dev-master
This package is not auto-updated.
Last update: 2025-10-05 12:59:26 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