Download the PHP package carlos-mg89/symfony-captcha-bundle without Composer
On this page you can find all versions of the php package carlos-mg89/symfony-captcha-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download carlos-mg89/symfony-captcha-bundle
More information about carlos-mg89/symfony-captcha-bundle
Files in carlos-mg89/symfony-captcha-bundle
Package symfony-captcha-bundle
Short Description Symfony Captcha Bundle -- BotDetect PHP CAPTCHA generator integration for the Symfony framework.
License
Homepage https://captcha.com/doc/php/symfony-captcha-bundle-quickstart.html
Informations about the package symfony-captcha-bundle
ATTENTION!!! This library is not the official one, but since the official one does not seem to have support anymore I've decided to fully update it so it's working again for newer Symfony versions. I haven't put any efforts on making it compatible with Symfony 4 or older versions, but contributions are welcome.
BotDetect PHP Captcha generator integration for the Symfony 5 framework (possibly on Symfony 4.4 too)
BotDetect Symfony CAPTCHA integration on captcha.com
- Symfony Captcha Integration Quickstart
- Symfony Application
- Symfony Captcha Api Basics Example
- Symfony Captcha Form Model Validation Example
- Symfony Captcha FOSUserBundle Example
Other BotDetect PHP Captcha integrations
- Plain PHP Captcha Integration
- WordPress Captcha Plugin
- CakePHP Captcha Integration
- CodeIgniter Captcha Integration
- Laravel Captcha Integration
Questions?
If you encounter bugs, implementation issues, a usage scenario you would like to discuss, or you have any questions, please contact BotDetect CAPTCHA Support.
How to install with Composer
Simply run composer require carlos-mg89/symfony-captcha-bundle
Usage example in a Symfony 5.x project
- Install dependency with Composer as explained above
-
Add the following in your
config/routes.yaml
: -
Create this file
config/packages/captcha.php
with the following content (or similar):-
Edit your
config/services.yaml
so it autowires the controllers used in the library: -
Edit your
FormType
or yourFormBuilderInterface
with this bit that adds the captcha along with the constraing to validate the form: -
Now edit your Twig template with the new
captchaCode
(CaptchaType
): - Finally, add the Form validation:
You have the original documentation here: https://captcha.com/doc/php/howto/symfony-captcha-bundle-integration.html#howto_display_captcha_config but it's not fully up to date nor complete.
-