sitegeist/femanager-captcha 问题修复 & 功能扩展

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

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

sitegeist/femanager-captcha

Composer 安装命令:

composer require sitegeist/femanager-captcha

包简介

Adds ability for multiple captchas to femanager, ships with altcha

README 文档

README

This TYPO3 extensions extends EXT:femanager to use other captchas than EXT:sr_freecap. It offers some configuration to include a captcha of your choice. It especially comes with everything you need to use "altcha" in femanager: https://altcha.org/docs/v2

What does it do?

EXT:femanager can only be used with EXT:sr_freecap. There is no native way to integrate another captcha. This extension introduces the possibility to include your favourite captcha. Looking for EXT:femanager to use a GDPR compliant captcha? This extension is shiped with "altcha": no cookies, non-intrusive.

Getting Started

  1. Install the extension

    composer require sitegeist/femanager-captcha
    
  2. Include the TypoScript settings (these lines or select our "Set" in "Sets for this Site")

    # enable use of captcha in femanager
    plugin.tx_femanager.settings.new.validation.captcha.captcha = 1
    # provide the path to overwritten partials (do not change this line)
    plugin.tx_femanager.view.partialRootPaths.1759843226 = EXT:femanager_captcha/Resources/Private/Partials/
    # use altcha instead of sr_freecap
    plugin.tx_femanager.settings.new.validation.captcha.use = altcha
    # use the validator class for altcha
    plugin.tx_femanager.settings.new.validation.captcha.validatorclass = BBysaeth\Typo3Altcha\Validation\AltchaValidator
    

How to use other captchas

# enable use of captcha in femanager
plugin.tx_femanager.settings.new.validation.captcha.captcha = 1
# use "somecaptcha"
plugin.tx_femanager.settings.new.validation.captcha.use = somecaptcha
# use the validator class for yor "somecaptcha"
plugin.tx_femanager.settings.new.validation.captcha.validatorclass = YourNameSpace\YourExt\Validation\SomecaptchaValidator
# provide a partial to display your "somecaptcha"
plugin.tx_femanager.view.partialRootPaths.123456789 = EXT:YourExt/Resources/Private/Partials/

You will have to provide (in your own EXT or sitepackage)

  • A partial with the same name as defined in ".use": somecaptcha.html. This partial has to provide a form field named "tx_femanager_registration[captcha]" which will then be validated by some PHP class. For an example take a look at vendor/femanager-captcha/Resources/Private/Partials/Fields/altcha.html.
  • Probably you will want to call a custom ViewHelper (from your partial) which will actually render the Captcha (Image or whatever). For an example take a look at vendor/bbysaeth/typo3-altcha/Classes/ViewHelpers/Form/AltchaViewHelper.php.
  • A validator class to validate captcha data after form is submitted. For an example take a look at vendor/bbysaeth/typo3-altcha/Classes/Validation/AltchaValidator.php

ToDo / Remarks

  • composer.json requires sjbr/sr-freecap. This must remain the case for the time being because femanager checks in various places whether this EXT is loaded. However, femanager could instead rely on the fact that if “settings.” . $controllerName . “.validation.captcha.captcha” == TRUE has been set, a captcha EXT is also available. Currently, it checks both conditions, which means we have to ensure that sr_freecap is also present.
  • at the moment captcha is only provided for "new" action, but should be easy to adapt to "edit" action as well

Special thanks

The development and the public-releases of this package is generously sponsored by SPIEGEL-Verlag Rudolf Augstein GmbH & Co. KG

sitegeist/femanager-captcha 适用场景与选型建议

sitegeist/femanager-captcha 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 345 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 sitegeist/femanager-captcha 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 sitegeist/femanager-captcha 我们能提供哪些服务?
定制开发 / 二次开发

基于 sitegeist/femanager-captcha 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-10-09