toastnz / simple-captcha
简单的验证码反垃圾邮件保护器
1.0.3
2022-12-12 02:50 UTC
Requires
- ext-gd: *
- silverstripe/framework: ~4.0
- silverstripe/spamprotection: ~3.0
- silverstripe/vendor-plugin: ^1.0
README
为SilverStripe提供的简单垃圾邮件保护字段。
要求
- SilverStripe 4
- SilverStripe垃圾邮件保护
- PHP GD
安装
composer require toastnz/simple-captcha
在config.yml中将Simple Catcha设置为默认的垃圾邮件保护器
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension: default_spam_protector: Toast\SimpleCaptcha\Forms\SimpleCaptchaProtector
在表单上启用垃圾邮件保护
$form->enableSpamProtection();