Skip to content

toastnz/simple-captcha

Repository files navigation

Simple Captcha

Simple spam protector field for SilverStripe.

Requirements

  • SilverStripe 4
  • SilverStripe Spam Protection
  • PHP GD

Installation

composer require toastnz/simple-captcha

Set Simple Catcha as the default spam protector in your config.yml

SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: Toast\SimpleCaptcha\Forms\SimpleCaptchaProtector

Enable spam protection on the form:

$form->enableSpamProtection();