PHPackages                             digitalpulsebe/craft-friendly-captcha - 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. digitalpulsebe/craft-friendly-captcha

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

digitalpulsebe/craft-friendly-captcha
=====================================

Integrate Friendly Captcha to fight spam in your Craft CMS forms

3.0.1(2y ago)13581[1 issues](https://github.com/digitalpulsebe/craft-friendly-captcha/issues)1MITPHP

Since Oct 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/digitalpulsebe/craft-friendly-captcha)[ Packagist](https://packagist.org/packages/digitalpulsebe/craft-friendly-captcha)[ RSS](/packages/digitalpulsebe-craft-friendly-captcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (25)Used By (1)

Friendly Captcha plugin for Craft CMS 3.x, 4.x and 5.x
======================================================

[](#friendly-captcha-plugin-for-craft-cms-3x-4x-and-5x)

Integrate Friendly Captcha to fight spam in your Craft CMS forms

[![Screenshot](resources/img/logo_friendly_captcha.png)](resources/img/logo_friendly_captcha.png)

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

[](#requirements)

This plugin requires Craft CMS 3, 4 or 5

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 digitalpulsebe/craft-friendly-captcha

    ```

    when using Craft 3.x use plugin version 1:

    ```
    composer require digitalpulsebe/craft-friendly-captcha:^1.0.0

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Friendly Captcha. Or run:

    ```
    php craft plugin/install friendly-captcha

    ```

Friendly Captcha keys
---------------------

[](#friendly-captcha-keys)

Create an account for Friendly Captcha

Generate a **sitekey** and an **API key** and put them in the plugin settings or .env-file

Configuring Friendly Captcha
----------------------------

[](#configuring-friendly-captcha)

[![Screenshot](resources/img/screenshot_settings.png)](resources/img/screenshot_settings.png)

Using Friendly Captcha
----------------------

[](#using-friendly-captcha)

On every form you want to use, you need to render the widget inside the form.

In you template, put this inside the ``-tag

```
{{ craft.friendlyCaptcha.renderWidget() }}

```

You have to enable the forms you want to validate in the settings:

- Contact Forms [plugin](https://github.com/craftcms/contact-form) (Submission::EVENT\_BEFORE\_VALIDATE)
- User registration form (User::EVENT\_BEFORE\_VALIDATE)

When you want to validate the request in your custom controller run this:

```
use digitalpulsebe\friendlycaptcha\FriendlyCaptcha;

// ...

if (!FriendlyCaptcha::$plugin->validate->validateRequest()) {
   // add error here
}
```

To show error messages in your form, use the submission object (check implementation of the controller you use):

```
{{ craft.friendlyCaptcha.renderWidget() }}
{{ submission ? _self.errorList(submission.getErrors('friendlyCaptcha')) }}

```

Using Friendly Captcha with Formie
----------------------------------

[](#using-friendly-captcha-with-formie)

Use the [digitalpulse/craft-formie-friendly-captcha](https://github.com/digitalpulsebe/craft-formie-friendly-captcha)plugin with Formie.

Widget options
--------------

[](#widget-options)

You can pass an array of attributes to the `renderWidget()`-function. Read the [Attribute API HTML tags](https://docs.friendlycaptcha.com/#/widget_api?id=attribute-api-html-tags)-section in the Friendly Captcha docs.

example:

```
{{ craft.friendlyCaptcha.renderWidget({'data-lang': 'fr'}) }}

```

Attribution
-----------

[](#attribution)

The Friendly Captcha widget and logo belong to Friendly Captcha

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Recently: every ~17 days

Total

19

Last Release

804d ago

Major Versions

1.0.4 → 2.0.52023-02-14

1.1.0 → 2.1.02023-04-25

1.1.1 → 2.1.12023-08-10

2.1.1 → 3.0.02023-12-29

2.1.4 → 3.0.12024-03-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/102023374?v=4)[Jonathan De Baere](/maintainers/jodeba)[@jodeba](https://github.com/jodeba)

![](https://www.gravatar.com/avatar/fefb6475730ac948fa01153dea60fef3e12e3ee5909c0eb2dca0300bcef03d98?d=identicon)[bartdigitalpulse](/maintainers/bartdigitalpulse)

---

Top Contributors

[![jodeba](https://avatars.githubusercontent.com/u/102023374?v=4)](https://github.com/jodeba "jodeba (55 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginfriendly captcha

### Embed Badge

![Health badge](/badges/digitalpulsebe-craft-friendly-captcha/health.svg)

```
[![Health](https://phpackages.com/badges/digitalpulsebe-craft-friendly-captcha/health.svg)](https://phpackages.com/packages/digitalpulsebe-craft-friendly-captcha)
```

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[pennebaker/craft-architect

CraftCMS plugin to generate content models from JSON/YAML data.

72148.5k5](/packages/pennebaker-craft-architect)

PHPackages © 2026

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