PHPackages                             gonzakpo/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. gonzakpo/recaptcha-bundle

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

gonzakpo/recaptcha-bundle
=========================

Recaptcha Bundle creates a form element form Google NoCaptcha Recaptcha v2

1.0.1(5y ago)023MITPHPPHP &gt;=5.3.8

Since Mar 15Pushed 5y agoCompare

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

READMEChangelog (1)Dependencies (3)Versions (8)Used By (0)

RecaptchaBundle
===============

[](#recaptchabundle)

Symfony2 Bundle for Google reCaptcha v2. It provides a form type to include in your forms and a specific validator.

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

[](#installation)

Install with composer :

```
composer require gonzakpo/recaptcha-bundle
```

### Enable the bundle in your project

[](#enable-the-bundle-in-your-project)

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Pv\RecaptchaBundle\PvRecaptchaBundle(),
        // ...
    );
}
```

Config
------

[](#config)

Add the following line to your `config.yml` :

```
# app/config/config.yml

# Include the recaptcha widget
twig:
    form:
        resources:
            # ...
            - 'PvRecaptchaBundle:Form:recaptcha_widget.html.twig'
            # ...

# Recaptcha Configuration
pv_recaptcha:
    recaptcha_public_key: 'your-public-key'
    recaptcha_private_key: 'your-private-key'
```

Usage
-----

[](#usage)

### Recaptcha V2

[](#recaptcha-v2)

Add the following code to your form class :

```
public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder
        // ...
        ->add('recaptcha', 'pv_recaptcha', array(
            'label' => 'Your label',
            'mapped' => false,
        ))
        // ...
    ;
}
```

Then, display the widget in your twig view like

```
    {{ form_label(form.recaptcha) }}
    {{ form_widget(form.recaptcha) }}
    {{ form_errors(form.recaptcha) }}
```

### Invisible Recaptcha

[](#invisible-recaptcha)

Add the following code to your form class :

```
public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder
        // ...
        ->add('recaptcha', 'pv_recaptcha', array(
            'label' => false,
            'mapped' => false,
            'invisible' => true,
            'form_id' => 'your-form-element-id'
        ))
        // ...
    ;
}
```

TODO
----

[](#todo)

- Create a tag

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~316 days

Recently: every ~334 days

Total

6

Last Release

2127d ago

Major Versions

0.9.3 → 1.0.02018-01-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ab7da460db4f61d98fb4c414cfbd87ca6134fe03dd4bcc764ac19a8164918f6?d=identicon)[gonzaloalonsod](/maintainers/gonzaloalonsod)

---

Top Contributors

[![pierre-vassoilles](https://avatars.githubusercontent.com/u/6613517?v=4)](https://github.com/pierre-vassoilles "pierre-vassoilles (4 commits)")[![gonzaloalonsod](https://avatars.githubusercontent.com/u/1031176?v=4)](https://github.com/gonzaloalonsod "gonzaloalonsod (1 commits)")

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[klapaudius/oauth-server-bundle

Symfony(5.x to 8.x) OAuth Server Bundle

15547.3k2](/packages/klapaudius-oauth-server-bundle)

PHPackages © 2026

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