evoweb/recaptcha
Composer 安装命令:
composer require evoweb/recaptcha
包简介
Easy on Humans, Hard on Bots
README 文档
README
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;
}
}
evoweb/recaptcha 适用场景与选型建议
evoweb/recaptcha 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 654.36k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2017 年 04 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「recaptcha」 「Invisible captcha」 「nocaptcha 2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 evoweb/recaptcha 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 evoweb/recaptcha 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 evoweb/recaptcha 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Captcha.eu - The intelligent GDPR-compliant non-intrusive bot protection for your TYPO3 CMS Forms. Invisible/Non-interruptive - No riddles or puzzle solving neccessary!
Client library for reCAPTCHA with proxy support, a free service that protects websites from spam and abuse.
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
ImagetyperzAPI PHP is a super easy to use bypass captcha API wrapper for imagetyperz.com captcha service
Invisible reCAPTCHA For Laravel.
A simple and easy to use Google ReCaptcha v3 package for Laravel
统计信息
- 总下载量: 654.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 26
- 依赖项目数: 2
- 推荐数: 1
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2017-04-07