PHPackages                             prugala/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. prugala/recaptcha-bundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

prugala/recaptcha-bundle
========================

reCAPTCHA v3 bundle for Symfony

1.3.2(6y ago)1340.2k↑22.7%8[7 issues](https://github.com/prugala/PRRecaptchaBundle/issues)[1 PRs](https://github.com/prugala/PRRecaptchaBundle/pulls)MITPHPPHP ^7.1

Since Apr 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/prugala/PRRecaptchaBundle)[ Packagist](https://packagist.org/packages/prugala/recaptcha-bundle)[ Docs](https://github.com/prugala/PRRecaptchaBundle)[ RSS](/packages/prugala-recaptcha-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (17)Used By (0)

ARCHIVED
========

[](#archived)

This repository is archived and not maintained.

Please use:

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

[](#recaptchabundle)

Recaptcha v3 bundle for Symfony

[![Latest Stable Version](https://camo.githubusercontent.com/5ad82e1db76f0c18bd2428886201d7280d8806b7e921bcb4f32478c0db3c32e0/68747470733a2f2f706f7365722e707567782e6f72672f70727567616c612f7265636170746368612d62756e646c652f762f737461626c65)](https://packagist.org/packages/prugala/recaptcha-bundle)[![Total Downloads](https://camo.githubusercontent.com/e95c4eb21ec058c09d2238eaf1fee716f191b3da16e7e74f0bbf83e43c252b72/68747470733a2f2f706f7365722e707567782e6f72672f70727567616c612f7265636170746368612d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/prugala/recaptcha-bundle)[![License](https://camo.githubusercontent.com/48f4476b63ebfd71b2efe40b2b443554062626016032647ed8365ebf362deccc/68747470733a2f2f706f7365722e707567782e6f72672f70727567616c612f7265636170746368612d62756e646c652f6c6963656e7365)](https://github.com/prugala/PRRecaptchaBundle/blob/master/LICENSE)

[![Build Status](https://camo.githubusercontent.com/72857ac6e30cd003f465b912e2bb0ecc68a41a75e6c41fa39399e38193717447/68747470733a2f2f7472617669732d63692e6f72672f70727567616c612f505252656361707463686142756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/prugala/PRRecaptchaBundle)

#### Installation

[](#installation)

`composer require prugala/recaptcha-bundle`

Register bundle in `AppKernel.php` file:

`new PR\Bundle\RecaptchaBundle\PRRecaptchaBundle()`

#### Configuration

[](#configuration)

```
pr_recaptcha:
    public_key: 'public key'
    secret_key: 'secret key'
    enabled: false # optional / default value: true - you can disable it for local or test env
    score_threshhold: 'score' # optional / default value: 0.5
    hide_badge: true # optional / default value: false *
    host: 'www.google.com' # optional / default value: www.google.com **
```

`*` When you hide badge inform visitors that reCAPTCHA is implemented on website:

`**` If you plan to use reCAPTCHA globally please use host `www.recaptcha.net`. More informations:

In Symfony 4.4 and newer you need to register form theme by yourself by adding in `config/packages.twig.yaml`

```
twig:
    form_themes: ['@PRRecaptcha/Form/recaptcha.html.twig']
```

#### How to use

[](#how-to-use)

Add field with type `RecaptchaType` to your form, example:

`->add('captcha', RecaptchaType::class)`

Options available:

```
->add('captcha', RecaptchaType::class, [
    'script_nonce_csp' => $nonce,
    'action_name' => 'contact_form'
])
```

- script\_nonce\_csp: Nonce for Content-Security-Policy header
- action\_name: Form specific action name

#### TODO

[](#todo)

1. Support for version v2
2. Waiting for suggestions :)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 81.5% 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 ~39 days

Recently: every ~70 days

Total

9

Last Release

2273d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.1.2PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c875e251ca0383f9cca344aa10b3cabc545bd214e113cb0523da81a9b40d84c?d=identicon)[prugala](/maintainers/prugala)

---

Top Contributors

[![prugala](https://avatars.githubusercontent.com/u/3672030?v=4)](https://github.com/prugala "prugala (22 commits)")[![aarongerig](https://avatars.githubusercontent.com/u/17384333?v=4)](https://github.com/aarongerig "aarongerig (2 commits)")[![lamasfoker](https://avatars.githubusercontent.com/u/12940668?v=4)](https://github.com/lamasfoker "lamasfoker (1 commits)")[![mmenozzi](https://avatars.githubusercontent.com/u/1199914?v=4)](https://github.com/mmenozzi "mmenozzi (1 commits)")[![pfcloutier-druide](https://avatars.githubusercontent.com/u/6215970?v=4)](https://github.com/pfcloutier-druide "pfcloutier-druide (1 commits)")

---

Tags

phprecaptcharecaptcha-v3symfonysymfony-bundlesymfonyrecaptcha

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9546.7k2](/packages/jbtronics-settings-bundle)[beelab/recaptcha2-bundle

Provide Google Recaptcha2 form type

55455.1k1](/packages/beelab-recaptcha2-bundle)[barryvdh/laravel-form-bridge

This packages integrates Symfony Form Component in Laravel.

163354.8k1](/packages/barryvdh-laravel-form-bridge)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[craue/config-bundle

Database-stored settings made available via a service for your Symfony project.

1771.0M4](/packages/craue-config-bundle)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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