定制 sam-costigan/areyouahuman 二次开发

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

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

sam-costigan/areyouahuman

Composer 安装命令:

composer require sam-costigan/areyouahuman

包简介

The Are You a Human Module allows use of the Are You a Human Spam Protection game as both a FormField type (AYAHField) and as the default Spam Protector when integrated with the Spam Protection Module.

README 文档

README

Original by stozze

Adapted for SpamProtector by SDC

Usage

Add the root folder called "areyouahuman" in the root of your Silverstripe installation. Make sure to rename it to "areyouahuman" if it is not already named so.

In your site _config.php you can set the publisher and scoring keys like this:

AYAHField::$publisher_key = 'your publisher key';
AYAHField::$scoring_key = 'you scoring key';

If you want the Are You a Human field to be the automatic Spam Protection field, also add the following line to your _config.php:

SpamProtectorManager::set_spam_protector('AYAHProtector');

After you have configured your keys, add AYAHField to the forms you want validated via the "Are you a human"-service (www.areyouahuman.com). Something like this:

$formFields->push(new AYAHField());

You must have registered an account at www.areyouahuman.com to be able to use their service. It's free!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-08-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固