7sg/fusion-form-recaptcha

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

ReCaptcha Form Element for Fusion Forms

1.0.0 2023-02-04 09:49 UTC

This package is auto-updated.

Last update: 2024-04-05 08:08:44 UTC


README

Provides two elements (V2 + V3) for the Fusion Forms package to use Google's ReCaptcha service.

Installation

composer require 7sg/fusion-form-recaptcha

Configuration

Add the following to your Settings.yaml:

Seven:
  Fusion:
    Form:
      ReCaptcha:
        siteKey: 'SOME_SITE_KEY'
        secretKey: 'SOME_SECRET_KEY'

Add Elements to your Form

Please notice: Its currently only possible to use one ReCaptcha element per page.

V2 (Verify requests with a challenge)

<Seven.Fusion.Form.ReCaptcha:ReCaptchaV2/>

V3 (Verify requests with a score)

This version requires an action name to be passed to the element.

 <Seven.Fusion.Form.ReCaptcha:ReCaptchaV3 action="Your action name"/>

License

Licensed under MIT