mdmsoft/yii2-captcha Captcha with math equation

captchamath

Captcha With Math Equation

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist mdmsoft/yii2-captcha "~1.0"

or add

"mdmsoft/yii2-captcha": "~1.0"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply modify your controler, add or change methode actions():

public function actions()
{
    return [
        ...
        'captcha' => [
                'class' => 'mdm\captcha\CaptchaAction',
                'level' => 3, // avaliable level are 1,2,3 :D
            ],
    ];
}

In view

<?=
$form->field($model, 'verifyCode')->widget(Captcha::className(), [
    'template' => '<div class="row"><div class="col-lg-12">{image}</div><div class="col-lg-12">{input}</div></div>',
])
?>

screenshot

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.1 is the latest of 3 releases



BSD-3-Clause license
Stats
39 github stars & 8 github forks
10 downloads in the last day
77 downloads in the last 30 days
9457 total downloads