Download the PHP package gremo/captcha-form-bundle without Composer
On this page you can find all versions of the php package gremo/captcha-form-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package captcha-form-bundle
GremoCaptchaFormBundle
Symfony bundle that provides CAPTCHA form field to solve challenge-response tests. Supports multiple adapters as well as custom ones. Built-in adapter for:
New contributors are welcome!
Installation
Then enable the bundle:
If you are using a previous version of Symfony:
Configuration
In order to use the CAPTCHA form you need to configure at least one adapter (see "Adapters" section).
Usage
You can use the generic form type instead of the form provided by each adapter. This is more maintainable as you depends only on one form type.
The generic type use the default adapter and options provided in the configuration. An example usage:
Adapters
At least one adapter must be configured.
Google reCAPTCHA v2 adapter
Adapter key: recaptcha
Form Type: Gremo\CaptchaFormBundle\Form\Type\RecaptchaType
Add the google/recaptcha
library to your project:
Configure the adapter (options explanation):
Finally, add the reCAPTCHA <script>
tag to your base template:
Tip: add the
hl
parameter to the script in order to localize the CAPTCHA, i.e. in Twighl={{ app.request.locale }}
.
Example usage:
Google reCAPTCHA v3 adapter
Adapter key: recaptcha_v3
Form Type: Gremo\CaptchaFormBundle\Form\Type\RecaptchaV3Type
Add the google/recaptcha
library to your project:
Configure the adapter (options explanation):
There is no need to add any <script>
tag because the form theme will do it for you.
Example usage:
Gregwar captcha adapter
Adapter key: gregwar_captcha
Form Type: Gremo\CaptchaFormBundle\Form\Type\GregwarCaptchaType
Add the gregwar/recaptcha
library to your project:
Configure the adapter (options explanation):
Example usage:
Honeypot adapter
Adapter key: honeypot
Form Type: Gremo\CaptchaFormBundle\Form\Type\HoneypotType
Configure the adapter:
Example usage: