PHPackages                             mael/recaptcha-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. mael/recaptcha-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

mael/recaptcha-bundle
=====================

Google Recaptcha integration for Symfony and Twig (easy integration with Symfony Form)

1.0.0(5y ago)21.1kMITPHPPHP ^7.1CI passing

Since Mar 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Mael-91/MaelRecaptchaBundle)[ Packagist](https://packagist.org/packages/mael/recaptcha-bundle)[ Docs](https://github.com/Mael-91)[ RSS](/packages/mael-recaptcha-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)Dependencies (10)Versions (5)Used By (0)

MaelRecaptchaBundle for Symfony
===============================

[](#maelrecaptchabundle-for-symfony)

[![](https://camo.githubusercontent.com/634cbcdd8ef78cfa2ce95bf159e0fc7b4c2529814b00f8b9a870b088103cedab/68747470733a2f2f7472617669732d63692e636f6d2f4d61656c2d39312f4d61656c52656361707463686142756e646c652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/634cbcdd8ef78cfa2ce95bf159e0fc7b4c2529814b00f8b9a870b088103cedab/68747470733a2f2f7472617669732d63692e636f6d2f4d61656c2d39312f4d61656c52656361707463686142756e646c652e7376673f6272616e63683d6d6173746572)[![](https://camo.githubusercontent.com/b08f011e4b66faafa06b9d355b66620c0b99b35c74975f211301bed460c73e7a/68747470733a2f2f636f6465636f762e696f2f67682f4d61656c2d39312f4d61656c52656361707463686142756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://camo.githubusercontent.com/b08f011e4b66faafa06b9d355b66620c0b99b35c74975f211301bed460c73e7a/68747470733a2f2f636f6465636f762e696f2f67682f4d61656c2d39312f4d61656c52656361707463686142756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)[![](https://camo.githubusercontent.com/c2745b42e4e2b9382cff3dff097c2918f31f7384233cc4fc96ce02a01e0b11fe/68747470733a2f2f626574746572636f64656875622e636f6d2f656467652f62616467652f4d61656c2d39312f4d61656c52656361707463686142756e646c653f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/c2745b42e4e2b9382cff3dff097c2918f31f7384233cc4fc96ce02a01e0b11fe/68747470733a2f2f626574746572636f64656875622e636f6d2f656467652f62616467652f4d61656c2d39312f4d61656c52656361707463686142756e646c653f6272616e63683d6d6173746572)

MaelRecaptchaBundle is a bundle allowing the integration of Google Recaptcha on a Symfony project.

Available features
------------------

[](#available-features)

- Google ReCaptcha V2 (invisible) : ✅
- Google ReCaptcha V2 (checkbox) : ✅
- Google ReCaptcha V3 : ❌

Installation
------------

[](#installation)

It's very quick and easy, in 5 steps

1. [Install MaelRecaptchaBundle via composer](https://github.com/Mael-91/MaelRecaptchaBundle#step-1--install-maelrecaptchabundle-via-composer)
2. [Enable the bundle](https://github.com/Mael-91/MaelRecaptchaBundle#step-2-enable-the-bundle)
3. [Generate you key and secret key](https://github.com/Mael-91/MaelRecaptchaBundle#step-3-generate-your-key-and-secret-key)
4. [Configure your key and secret key](https://github.com/Mael-91/MaelRecaptchaBundle#setp-4-configure-the-mael_recaptchayaml)
5. [Use the Recaptcha in your forms](https://github.com/Mael-91/MaelRecaptchaBundle#step-5-editing-your-form-and-your-view)
6. [Contributing](https://github.com/Mael-91/MaelRecaptchaBundle#contributing)
7. [License](https://github.com/Mael-91/MaelRecaptchaBundle#license)

### Step 1 : Install MaelRecaptchaBundle via composer

[](#step-1--install-maelrecaptchabundle-via-composer)

Run the following command :

```
composer require mael/recaptcha-bundle
```

You can quickly configure this bundle by using `symfony/flex` :

- Answer **no** for `google/recpatcha`
- Answer **yes** for `mael/recaptcha-bundle`

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Register bundle into `config/bundles.php`

```
