PHPackages                             3dgoo/silverstripe-hcaptcha - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. 3dgoo/silverstripe-hcaptcha

ActiveSilverstripe-vendormodule[Validation &amp; Sanitization](/categories/validation)

3dgoo/silverstripe-hcaptcha
===========================

A spam protector and form field using hCaptcha for Silverstripe

3.0.1(9mo ago)41.8k2MITPHPCI failing

Since May 18Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/3Dgoo/silverstripe-hcaptcha)[ Packagist](https://packagist.org/packages/3dgoo/silverstripe-hcaptcha)[ RSS](/packages/3dgoo-silverstripe-hcaptcha/feed)WikiDiscussions master Synced 3w ago

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

Silverstripe hCaptcha spam protection
=====================================

[](#silverstripe-hcaptcha-spam-protection)

[![Build Status](https://camo.githubusercontent.com/66abb8d5889262637f506f36e7878b797c112f451d084dca9f543c143585bdb6/68747470733a2f2f7472617669732d63692e6f72672f3364676f6f2f73696c7665727374726970652d68636170746368612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/3dgoo/silverstripe-hcaptcha)[![codecov.io](https://camo.githubusercontent.com/1ee939121b3b0f600a18121c960d4db035f9bf99d4740b685a2be90ba2de3bae/68747470733a2f2f636f6465636f762e696f2f6769746875622f3364676f6f2f73696c7665727374726970652d68636170746368612f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/gh/3dgoo/silverstripe-hcaptcha?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/87c7d3cadf9a95f75af2fab4d2e2bd9322ec675ee682cc31db7584c2ae5fdf23/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f3364676f6f2f73696c7665727374726970652d68636170746368612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/3dgoo/silverstripe-hcaptcha/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/877a47bcb88da604f036c8b0b656852ea9d9a109a45a0b849b9caeadb145bd66/68747470733a2f2f706f7365722e707567782e6f72672f3364676f6f2f73696c7665727374726970652d68636170746368612f762f737461626c65)](https://packagist.org/packages/3dgoo/silverstripe-hcaptcha)[![Total Downloads](https://camo.githubusercontent.com/2d03d1edbbe92b17430b38e84bb2742e7b7e8f223c785e805d6f526bb5a65e49/68747470733a2f2f706f7365722e707567782e6f72672f3364676f6f2f73696c7665727374726970652d68636170746368612f646f776e6c6f616473)](https://packagist.org/packages/3dgoo/silverstripe-hcaptcha)[![Latest Unstable Version](https://camo.githubusercontent.com/6cd616be65233dd9249d55cf8d53c092117ef8ad000f695ab9f3a5c1bc606262/68747470733a2f2f706f7365722e707567782e6f72672f3364676f6f2f73696c7665727374726970652d68636170746368612f762f756e737461626c65)](https://packagist.org/packages/3dgoo/silverstripe-hcaptcha)[![License](https://camo.githubusercontent.com/c87bf102d98274d7e983a4dba812d06b4eeb6ae75182e87bb9eaa0bb8752ac60/68747470733a2f2f706f7365722e707567782e6f72672f3364676f6f2f73696c7665727374726970652d68636170746368612f6c6963656e7365)](LICENSE)

A spam protection field using the hCaptcha service for Silverstripe.

[![hCaptcha screenshot](docs/en/images/hcaptcha-screenshot.png)](docs/en/images/hcaptcha-screenshot.png)

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

[](#requirements)

- Silverstripe Framework
- [Silverstripe Spam Protection](https://github.com/silverstripe/silverstripe-spamprotection/)
- [Guzzle](https://github.com/guzzle/guzzle/)

Installation (with composer)
----------------------------

[](#installation-with-composer)

```
$ composer require 3dgoo/silverstripe-hcaptcha

```

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

[](#configuration)

After installing the module via composer we must set the spam protector to HCaptchaProtector through a config yml file.

Create a `app/_config/spamprotection.yml` file and add the following details:

```
---
name: app-spamprotection
---
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: X3dgoo\HCaptcha\Forms\HCaptchaProtector

X3dgoo\HCaptcha\Forms\HCaptchaField:
  site_key: "YOUR_SITE_KEY"
  secret_key: "YOUR_SECRET_KEY"
```

We generate our site key and secret key at

The default language of the captcha will be set to the site language. This can be changed by setting the language\_code variable to any of the [available hCaptacha languages](https://docs.hcaptcha.com/languages/). If not set this will default to the current site locale:

```
X3dgoo\HCaptcha\Forms\HCaptchaField:
  language_code: "de"
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance57

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 92% 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 ~163 days

Recently: every ~155 days

Total

13

Last Release

282d ago

Major Versions

1.x-dev → 2.0.02023-07-31

2.x-dev → 3.0.02025-06-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/d291c7429ff8684f948ffb3180ae3d1e78aa53bb6c79bd9d7afb57752e441486?d=identicon)[3Dgoo](/maintainers/3Dgoo)

---

Top Contributors

[![3Dgoo](https://avatars.githubusercontent.com/u/2616373?v=4)](https://github.com/3Dgoo "3Dgoo (23 commits)")[![Firesphere](https://avatars.githubusercontent.com/u/680570?v=4)](https://github.com/Firesphere "Firesphere (1 commits)")[![RoyalPulp](https://avatars.githubusercontent.com/u/2283640?v=4)](https://github.com/RoyalPulp "RoyalPulp (1 commits)")

---

Tags

silverstripespamprotectionhcaptcha

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/3dgoo-silverstripe-hcaptcha/health.svg)

```
[![Health](https://phpackages.com/badges/3dgoo-silverstripe-hcaptcha/health.svg)](https://phpackages.com/packages/3dgoo-silverstripe-hcaptcha)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[undefinedoffset/silverstripe-nocaptcha

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

33494.6k20](/packages/undefinedoffset-silverstripe-nocaptcha)[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.7k](/packages/silverstripe-mathspamprotection)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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