sfue / re-captcha-bundle
This package is abandoned and no longer maintained.
No replacement package was suggested.
Google reCAPTCHA symfony form type and validator
Package info
github.com/Sfue/SfueReCaptchaBundle
Type:symfony-bundle
pkg:composer/sfue/re-captcha-bundle
v1.0.1
2018-05-13 21:41 UTC
Requires
- php: >=7.0
- google/recaptcha: ^1.1
- symfony/framework-bundle: ~3.2|~4.0
Requires (Dev)
- symfony/phpunit-bridge: ^4.0
- symfony/security-bundle: ^3.2 || ^4.0
This package is not auto-updated.
Last update: 2025-11-06 09:06:12 UTC
README
Installation
Install the bundle via composer
$ composer require sfue/re-captcha-bundle
Add the Bundle to your AppKernel
// app/AppKernel.php <?php public function registerBundles() { $bundles = array( // ... new new Sfue\ReCaptchaBundle\SfueReCaptchaBundle(), ); }
Add the bundles form theme to your twig configuration
sfue_re_captcha: site_key: 'your Google reCAPTCHA site key' secret: 'your Google reCAPTCHA secret'
Add the bundles form theme to your twig configuration
# Twig Configuration twig: form_themes: - '@SfueReCaptcha/Form/fields.html.twig'
Use the ReCaptchaType in any form you want to have a reCAPTCHA field
public function buildForm(FormBuilderInterface $builder, array $options) { $builder // ... ->add('recaptcha', ReCaptchaType::class) ; }