定制 evoweb/recaptcha 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

evoweb/recaptcha

最新稳定版本:14.1.2

Composer 安装命令:

composer require evoweb/recaptcha

包简介

Easy on Humans, Hard on Bots

README 文档

README

build Latest Stable Version Monthly Downloads Total Downloads

TYPO3 Extension to make use of Googles nocaptcha.
Now supports googles invisible reCAPTCHA.

Installation

via Composer

The recommended way to install TYPO3 Console is by using Composer:

composer require evoweb/recaptcha

via TYPO3 Extension Repository

Download and install the extension with the extension manager module or directly from the TER.

Integrate invisible reCAPTCHA in tx_form TypoScript forms

To be able to use the captcha, add the static include of this extension to your template.

After that, add in the TypoScript of the form.

lib.contactForm = FORM
lib.contactForm {
	70 < lib.invisibleRecaptchaIntegration.10

	rules {
		7 < lib.invisibleRecaptchaIntegration.rules.1
	}
}

Integrate invisible reCAPTCHA in own forms

To be able to use the captcha, add the static include of this extension to your template.

After modify your form output by replacing the submit-button with something like this:

<button
	data-sitekey="6LfmFxQUAAAAAGiMRvzLHGYQ8KiQiqgBuY5NswDz"
	data-callback="onContactformCaptchaSubmit"
	class="g-recaptcha"
	type="button" name="tx_form_form[tx_form][id-11]"
	value="absenden">
		absenden
</button>

After that you're ready on the frontend but still need to call the validation in your php code.

$validCaptcha = false;

$captchaService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\Evoweb\Recaptcha\Services\CaptchaService::class);
$captchaServiceValidation = $captchaService->validateReCaptcha();
if (isset($captchaServiceValidation['verified'])) {
	if ($captchaServiceValidation['verified'] === true) {
		$validCaptcha = true;
	}
}

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 22
  • 开发语言: Shell

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固