PHPackages                             mdoutreluingne/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mdoutreluingne/recaptcha-bundle

AbandonedArchivedSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

mdoutreluingne/recaptcha-bundle
===============================

You can validate your form with invisible recaptchav2 of google

V1.0.1(5y ago)0146MITPHPPHP ^7.1.3

Since Sep 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mdoutreluingne/recaptcha-bundle)[ Packagist](https://packagist.org/packages/mdoutreluingne/recaptcha-bundle)[ RSS](/packages/mdoutreluingne-recaptcha-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

Recaptcha-bundle
================

[](#recaptcha-bundle)

I created this Bundle for educational purposes, with Symfony 5, to be able to share my services with other developers. However this Bundle is functional, you can use it, and allows you to add a Recaptcha v2 invisible from google in your forms !

Install the package with:
-------------------------

[](#install-the-package-with)

```
composer require mdoutreluingne/recaptcha-bundle
```

And... that's it! If you're *not* using Symfony Flex, you'll also need to enable the `mdoutreluingne\RecaptchaBundle\RecaptchaBundle`in your `config/bundles.php` file. Like this :

```
mdoutreluingne\RecaptchaBundle\RecaptchaBundle::class => ['all' => true]

```

Usage
-----

[](#usage)

This bundle provides a service to generate a submit button with recaptcha v2 invisible from google using `RecaptchaSubmitType` type-hint in your class Type:

```
// src/Form/UnknownType.php

use mdoutreluingne\RecaptchaBundle\Type\RecaptchaSubmitType;
// ...

class UnknownType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            // ...
            ->add('captcha', RecaptchaSubmitType::class, [
                'label' => 'Submit',
                'attr' => [
                    'class' => 'btn btn-primary'
                ]
            ])
        ;
    }

    // ...
}
```

Configuration
-------------

[](#configuration)

You need to create and configure the `recaptcha.yaml` file in config/packages like this:

```
# config/packages/recaptcha.yaml
recaptcha:
  key: '%env(GOOGLE_RECAPTCHA_KEY)%'
  secret: '%env(GOOGLE_RECAPTCHA_SECRET)%'
```

And after that, integrate your key and google secret vote in the file `.env`

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2124d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53557695?v=4)[Maxime Doutreluingne](/maintainers/Mdoutreluingne)[@mdoutreluingne](https://github.com/mdoutreluingne)

---

Top Contributors

[![mdoutreluingne](https://avatars.githubusercontent.com/u/53557695?v=4)](https://github.com/mdoutreluingne "mdoutreluingne (19 commits)")

---

Tags

recaptcharecaptcha-bundlesymfonysymfony5symfonyrecaptchacaptchasymfony5

### Embed Badge

![Health badge](/badges/mdoutreluingne-recaptcha-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mdoutreluingne-recaptcha-bundle/health.svg)](https://phpackages.com/packages/mdoutreluingne-recaptcha-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
