contentreactor / craft-friendly-captcha
Friendly Captcha v1 and v2 integration for CraftCMS
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:craft-plugin
pkg:composer/contentreactor/craft-friendly-captcha
Requires
- php: >=8.2
- craftcms/cms: ^4.0||^5.0
- friendlycaptcha/sdk: ^0.1.2
README
Friendly Captcha v1 and v2 integration for CraftCMS
Requirements
This plugin requires Craft CMS 5.0 or later, and PHP 8.2 or later.
Installation
You can install this plugin from the Plugin Store or with Composer.
From the Plugin Store
Go to the Plugin Store in your project’s Control Panel and search for “Craft Friendly Captcha”. Then press “Install”.
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require contentreactor/craft-friendly-captcha # tell Craft to install the plugin ./craft plugin/install craft-friendly-captcha
Usage
Use the following code in templates to render the widget:
{{ craft.friendlyCaptcha.renderWidget() }}
Use the following code to validate the solution:
use contentreactor\craftfriendlycaptcha\Plugin; Plugin::getInstance()->getValidate()->validateRequest()