rfuehricht/formhandler-hcaptcha 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rfuehricht/formhandler-hcaptcha

最新稳定版本:13.0.2

Composer 安装命令:

composer require rfuehricht/formhandler-hcaptcha

包简介

Add error check hcaptcha to Formhandler.

README 文档

README

Adds error check hcaptcha to Formhandler.

Requires dreistromland/typo3-hcaptcha.

Usage

Register and get your Site Key and Private Key from https://www.hcaptcha.com/

Enter your data in TypoScript or via ENV variables. See documentation of EXT:hcaptcha for details.

plugin.tx_hcaptcha {
  settings {
    publicKey = <your-site-key>
    privateKey = <your-private-key>
  }
}

Add captcha field to your form:

<html
    data-namespace-typo3-fluid="true"
    xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
    xmlns:fh="http://typo3.org/ns/Rfuehricht/Formhandler/ViewHelpers"
    xmlns:hcaptcha="http://typo3.org/ns/Waldhacker/Hcaptcha/ViewHelpers"
>

<hcaptcha:forms.hcaptcha />
<fh:errorMessages as="message" error="hcaptcha" field="hcaptcha">
    <div class="error">{message}</div>
</fh:errorMessages>

</html>

Configure error check in TypoScript:


validators {
  1 {
    config {
      fieldConf {
        hcaptcha.errorCheck.1 = Rfuehricht\FormhandlerHcaptcha\ErrorCheck\Hcaptcha
      }
    }
  }
}

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-07-03