tms/hcaptcha

There is no license information available for the latest version (1.1.0) of this package.

hCaptcha form element for Neos.Form

Installs: 1 172

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 1

Type:neos-plugin

1.1.0 2022-12-15 13:40 UTC

This package is auto-updated.

Last update: 2024-12-15 18:11:38 UTC


README

Sick of using Google reCAPTCHA in your sites?

We too. Gladly, there is an alternative, which respects data privacy (at least according to https://www.hcaptcha.com/privacy) and improves performance. This package provides a hCaptcha form element for Neos.Form & Neos.Form.Builder.

By default, the hCaptcha widget will be rendered only on form interaction.

Install

composer require tms/hcaptcha

Usage

1.) Create a free hCaptcha account https://dashboard.hcaptcha.com/signup

2.) Get the siteKey and secret from your hCaptcha account and pass them to your Settings.yaml

# Configuration/Settings.yaml
Tms:
  Hcaptcha:
    siteKey: '%env:TMS_HCAPTCHA_SITE_KEY%'
    secret: '%env:TMS_HCAPTCHA_SECRET%'

Note: In Development context we automatically set the test key set (see https://docs.hcaptcha.com/#integration-testing-test-keys)

3.) Add the form element to your form configuration

prototype(Vendor.PackageName:MyForm) < prototype(Neos.Form.Builder:Form) {
    firstPage.elements {
        hcaptcha = Tms.Hcaptcha:Captcha.Definition
    }
}

Acknowledgments

Development sponsored by tms.development - Online Marketing and Neos CMS Agency