PHPackages                             swordfox/silverstripe-recaptchamultiple - 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. swordfox/silverstripe-recaptchamultiple

ActiveSilverstripe-vendormodule

swordfox/silverstripe-recaptchamultiple
=======================================

A spam protector and form field using the Google's reCAPTCHA 3 and supports multiple forms on a single page.

2.0.0(6mo ago)02.2kBSD-3-ClausePHPCI failing

Since Mar 5Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/swordfox/silverstripe-recaptchamultiple)[ Packagist](https://packagist.org/packages/swordfox/silverstripe-recaptchamultiple)[ RSS](/packages/swordfox-silverstripe-recaptchamultiple/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

silverstripe-recaptchamultiple
==============================

[](#silverstripe-recaptchamultiple)

A spam protector and form field using the Google's reCAPTCHA 3 that supports multiple forms

Based on  - The main changes are the way it injects CustomJs, most of it has been moved to the JS file.

Requirements
------------

[](#requirements)

- SilverStripe 4.x
- [SilverStripe Spam Protection 3.x](https://github.com/silverstripe/silverstripe-spamprotection/)
- PHP CURL

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

[](#installation)

```
composer require swordfox/silverstripe-recaptchamultiple

```

After installing the module via composer or manual install you must set the spam protector to RecaptchaMultipleProtector, this needs to be set a config file e.g. mysite/\_config/recaptchamultiple.yml.

```
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: Swordfox\RecaptchaMultiple\Forms\RecaptchaMultipleProtector
```

Add the "spam protection" field to your form fields.

```
$form->enableSpamProtection()
	->fields()->fieldByName('Captcha')
	->setTitle("Spam protection")
	->setDescription("Please tick the box to prove you're a human and help us stop spam.");
```

Set a callback for each field, handy for ajax forms

```
$form->enableSpamProtection()
	->fields()->fieldByName('Captcha')
	->setCallback("onSubmit");
```

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

[](#configuration)

There are multiple configuration options for the field, you must set the site\_key and the secret\_key which you can get from the [reCAPTCHA page](https://www.google.com/recaptcha). These configuration options must be added to a config filee.g. mysite/\_config/recaptchamultiple.yml.

```
Swordfox\RecaptchaMultiple\Forms\RecaptchaMultipleField:
    site_key: "YOUR_SITE_KEY" #Your site key (required)
    secret_key: "YOUR_SECRET_KEY" #Your secret key (required)
    recaptcha_version: 3 # Only 3 is supported
    minimum_score: 0.4 # minimum spam score to achieve. Any less is blocked
    verify_ssl: true #Allows you to disable php-curl's SSL peer verification by setting this to false (optional, defaults to true)
    default_theme: "light" #Default theme color (optional, light or dark, defaults to light)
    default_type: "image" #Default captcha type (optional, image or audio, defaults to image)
    default_size: "normal" #Default size (optional, normal, compact or invisible, defaults to normal)
    default_badge: "bottomright" #Default badge position (bottomright, bottomleft or inline, defaults to bottomright)
    proxy_server: "" #Your proxy server address (optional)
    proxy_auth: "" #Your proxy server authentication information (optional)
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance69

Regular maintenance activity

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~489 days

Recently: every ~612 days

Total

6

Last Release

183d ago

Major Versions

1.0.5 → 2.0.02025-11-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/96b760811dd50cc818deef02183cfabd8efacbc8f27af1c5f1fcde738980d2dd?d=identicon)[swordfox](/maintainers/swordfox)

---

Top Contributors

[![swordfox](https://avatars.githubusercontent.com/u/549500?v=4)](https://github.com/swordfox "swordfox (5 commits)")

---

Tags

silverstriperecaptchanocaptchaspamprotectionrecaptcha2multiple forms

### Embed Badge

![Health badge](/badges/swordfox-silverstripe-recaptchamultiple/health.svg)

```
[![Health](https://phpackages.com/badges/swordfox-silverstripe-recaptchamultiple/health.svg)](https://phpackages.com/packages/swordfox-silverstripe-recaptchamultiple)
```

###  Alternatives

[undefinedoffset/silverstripe-nocaptcha

A spam protector and form field using Google's reCAPTCHA v2 or optionally a foundation v3 implementation

33471.6k16](/packages/undefinedoffset-silverstripe-nocaptcha)[silverstripe/spamprotection

Spam protection module for SilverStripe.

44973.7k41](/packages/silverstripe-spamprotection)[silverstripe/mathspamprotection

This module provides a simple math protection mechanism for prevent spam from your forms.Includes an EditableMathSpamField to integrate with the UserForms module.

1917.6k](/packages/silverstripe-mathspamprotection)

PHPackages © 2026

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