kleegroup/google-recaptcha-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony Google Recaptcha Form Type

Maintainers

👁 t-veron

Package info

github.com/KleeGroup/Recaptcha-bundle-symfony

Type:symfony-bundle

pkg:composer/kleegroup/google-recaptcha-bundle

Statistics

Installs: 2 968

Dependents: 2

Suggesters: 0

Stars: 6

Open Issues: 1

1.0.3 2018-11-30 09:24 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 17bb68c86fb03e660035438c8141573a924412a5

validatorgooglecaptcha

This package is not auto-updated.

Last update: 2026-04-25 07:07:25 UTC


README

Caution

This repo has been archived and contains obsolete code. KleeGroup does not use this code anymore and won't be maintaining this repository.

Synopsys

Symfony 3 Bundle for Google Recaptcha with Proxy configuration.

Step 1: Setting up the bundle

1) Add GoogleRecaptchaBundle to your project

composer require kleegroup/google-recaptcha-bundle

2) Enable the bundle

Enable the bundle in the kernel:

// app/AppKernel.php

public function registerBundles()
{
 $bundles = array(
 // ...
 new KleeGroup\GoogleReCaptchaBundle\GoogleReCaptchaBundle(),
 );
}

Step 2: Configure the bundle

// config.yml
[...]
google_re_captcha:
 site_key: [Google_site_key]
 secret_key: [Google_secret_key]
 enabled: true/false
 ajax: true/false
 locale_key: [locale_key]
 http_proxy:
 host: [IP or hostname]
 port: [Port]

Step 3: Usage

 public function buildForm( FormBuilderInterface $builder, array $options)
 {
 [...]
 $builder
 ->add('recaptcha', ReCaptchaType::class, 
 [
 'mapped' => false,
 'constraints' => [
 new ReCaptcha(),
 ],
 ]
 );
 [...]
 
 }