webfox/silverstripe-formprotection-honeypot
Composer 安装命令:
composer require webfox/silverstripe-formprotection-honeypot
包简介
Honeypot spam protection for SilverStripe forms.
README 文档
README
Quickly add Honeypot spam protection for SilverStripe forms.
Composer
Run the following to add this module as a requirement and install it via composer.
#!bash
composer require "webfox/silverstripe-formprotection-honeypot:dev-master"
Usage
Include
#!php
use Webfox\SilverStripe\FormProtection\Honeypot\FormField\HoneypotField;
where the form is being created then attach the honey pot field to the form. For example:
#!php
$fields = new FieldList(
TextField::create('Name'),
EmailField::create('Email'),
HoneypotField::create('Protection')
);
or
#!php
$fields = new FieldList(
new TextField('Name'),
new EmailField('Email'),
new HoneypotField('Protection')
);
统计信息
- 总下载量: 176
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-14