定制 sitegeist/fusionform-friendlycaptcha 二次开发

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

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

sitegeist/fusionform-friendlycaptcha

最新稳定版本:2.0.0

Composer 安装命令:

composer require sitegeist/fusionform-friendlycaptcha

包简介

FriendlyCaptcha field and validator for Neos.Fusion.Form

README 文档

README

This package is for integrating the FriendlyCaptcha into FusionForms. The package provides a field input and matching validator for Fusion.Runtime.Forms.

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.

Installation

Sitegeist.FusionForm.FriendlyCaptcha is available via packagist run composer require sitegeist/fusionform-friendlycaptcha. We use semantic versioning so every breaking change will increase the major-version number.

Usage

prototype(Vendor.Site:RuntimeForm) < prototype(Neos.Fusion.Form:Runtime.RuntimeForm) {
    @context {
        showCaptcha = ${this.showCaptcha}
    }

    process {
        content = afx`
            <Sitegeist.FusionForm.FriendlyCaptcha:Scripts @if.1={showCaptcha} />
            ... here be content ...
            <Neos.Fusion.Form:FieldContainer field.name="captchaValidatorField" @if.1={showCaptcha}>
                <Sitegeist.FusionForm.FriendlyCaptcha:Captcha />
            </Neos.Fusion.Form:FieldContainer>
        `

        schema {
            captchaValidatorField = ${Form.Schema.string()}
            captchaValidatorField.@process.captchaValidator = ${value.validator('Sitegeist.FusionForm.FriendlyCaptcha:FriendlyCaptcha')}
            captchaValidatorField.@if.showCaptcha = ${showCaptcha}
        }
    }

    action { ... }
}

Contribution

We will gladly accept contributions. Please send us pull requests.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-02-17