Download the PHP package jield-webdev/laminas-recaptcha without Composer
On this page you can find all versions of the php package jield-webdev/laminas-recaptcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jield-webdev/laminas-recaptcha
More information about jield-webdev/laminas-recaptcha
Files in jield-webdev/laminas-recaptcha
Package laminas-recaptcha
Short Description Laminas module that lets you easily incorporate Google's new, simpler recaptcha (I am not a robot)
License MIT
Homepage https://github.com/jield-webdev/laminas-recaptcha
Informations about the package laminas-recaptcha
CirclicalRecaptcha
This repo is a fork of https://github.com/Saeven/zf2-circlical-recaptcha and upgraded to support Laminas This library only supports Google ReCaptcha v3, for support of Google ReCaptcha v2 please use the Main repo
Implementation
The system uses form_elements factories so the captcha form element cannot be directly called in the form constructor,
but have to be called via an init() call
Here is an example of a registration form using captcha form element
Install the module via composer:
And modify circlical.recaptcha.local.php and change the values with the values which can be found on
the ReCaptcha dashboard. Make sure you register a v3 application
Register the form in the module.config.php, use a ConfigAbstractFactory pattern to register more services in the form
or use an invokable when no dependencies are needed
The form has to be injected in the Controller via the FormElementManager, when using the ConfigAbstractFactory
system this can be done as follows:
In the controller the form can be called in the following way
All versions of laminas-recaptcha with dependencies
laminas/laminas-servicemanager Version ^3.6
laminas/laminas-inputfilter Version ^2.11
laminas/laminas-form Version ^3.1
laminas/laminas-view Version ^2.12
laminas/laminas-mvc Version ^3.2
ext-json Version *