avris/micrus-recaptcha

ReCaptcha widget for the Micrus framework

v4.0.0 2018-01-28 10:47 UTC

This package is auto-updated.

Last update: 2022-11-29 02:18:56 UTC


README

This is a module for Micrus framework that adds Google's ReCaptcha as a form widget.

Installation

Run:

composer require avris/micrus-recaptcha

Then register the module in your App\App:registerModules:

yield new \Avris\Micrus\ReCaptcha\ReCaptchaModule;

Finally, run:

bin/env

You will be asked for your Site key and Secret key. You can get them after signing up at ReCaptcha. They will be saved in the .env file.

Usage

In your form's configure() method simply add this widget:

->add('captcha', \Avris\Micrus\ReCaptcha\Widget\ReCaptcha::class)

Voilà!

Copyright