PHPackages                             c10d/craft-recaptcha - 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. c10d/craft-recaptcha

ActiveCraft-plugin[Validation &amp; Sanitization](/categories/validation)

c10d/craft-recaptcha
====================

Integrate reCAPTCHA v3 validation into your forms.

3.0.1(2y ago)39.6k1[3 issues](https://github.com/c10d-dev/craft-recaptcha/issues)[1 PRs](https://github.com/c10d-dev/craft-recaptcha/pulls)MITPHPPHP ^8.2

Since Feb 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/c10d-dev/craft-recaptcha)[ Packagist](https://packagist.org/packages/c10d/craft-recaptcha)[ RSS](/packages/c10d-craft-recaptcha/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

reCAPTCHA v3 plugin for Craft CMS
=================================

[](#recaptcha-v3-plugin-for-craft-cms)

Integrate reCAPTCHA validation into your forms.

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

[](#requirements)

This plugin requires Craft CMS 3.4 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require c10d/craft-recaptcha

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for craft-recaptcha.

Configuring craft-recaptcha
---------------------------

[](#configuring-craft-recaptcha)

1. [Sign up for reCAPTCHA API key](https://www.google.com/recaptcha/admin/create).
2. Open the Craft admin and go to Settings → Plugins → Craft reCAPTCHA → Settings.
3. Add your `site key` and `secret key`, then save.
4. Add the reCAPTCHA template tag and js to your forms.

NOTE: you can change the difficulty threshold directly in the settings! (default is 0.5)

Using craft-recaptcha
---------------------

[](#using-craft-recaptcha)

In your template, just add the following twig snippet to render a submit button for your form binded with reCAPTCHA:

```
{{ craft.recaptcha.renderSubmitButton('Send Request') }}
```

Or you can bind reCAPTCHA directly to your own submit button:

```
{{ craft.recaptcha.renderBindButton('my-submit-button-html-id') }}
Send
```

You can even create the block yourself and only get the site key variable:

```

```

NOTE: After this step is done, if you’re using the CraftCMS [Contact Form](https://plugins.craftcms.com/contact-form) plugin or you're using craft-recaptcha to validate a public user registration, just activate the corresponding toggle in the plugin's settings, you're all set! (the recaptcha will be automatically verified on submission)

Verify the reCAPTCHA
--------------------

[](#verify-the-recaptcha)

On the server side, you can use this to verify that the reCAPTCHA was done:

```
use c10d\craftrecaptcha\CraftRecaptcha;

// [ ... ]

$captcha = Craft::$app->getRequest()->getParam('g-recaptcha-response');
$isValid = CraftRecaptcha::$plugin->recaptcha->verify($captcha);
if (!$isValid) {
    // ERROR: you can push an error here
}
```

---

Brought to you by [Cédric Givord](https://c10d.dev)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

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

Recently: every ~94 days

Total

11

Last Release

769d ago

Major Versions

1.2.0 → 2.0.02022-06-01

2.3.0 → 3.0.02024-03-28

PHP version history (3 changes)1.0.0PHP ^7.2 || ^8.0

2.0.0PHP ^8.0.2

3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/795c5fc1a8528703df92033a1f823d92b2ff7b3f0edcecbe587643992aa3c85b?d=identicon)[c10d](/maintainers/c10d)

---

Top Contributors

[![c10d-dev](https://avatars.githubusercontent.com/u/83506623?v=4)](https://github.com/c10d-dev "c10d-dev (13 commits)")

---

Tags

recaptchacmsCraftcraftcmscraft-plugincraft recaptcha

### Embed Badge

![Health badge](/badges/c10d-craft-recaptcha/health.svg)

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

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[elivz/vzurl

A URL fieldtype with validation.

4433.2k](/packages/elivz-vzurl)[matt-west/craft-recaptcha

Integrate Google’s reCAPTCHA into your forms.

1959.9k1](/packages/matt-west-craft-recaptcha)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)

PHPackages © 2026

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