2017 © Pedro Peláez
 

yii2-extension yii2-simplemath-captcha

Simple Math Captcha

image

legront/yii2-simplemath-captcha

Simple Math Captcha

  • Sunday, March 5, 2017
  • by LeGront
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Captcha With a Simple Math Equation

Installation

The preferred way to install this extension is through composer., (*1)

Either run, (*2)

php composer.phar require --prefer-dist integready/yii2-simplemath-captcha "dev-master"

or add, (*3)

"integready/yii2-simplemath-captcha": "dev-master"

to the require section of your composer.json file., (*4)

Usage

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

public function actions()
{
    return [
            ...
            'captcha' => [
                'class' => 'integready\simplemathcaptcha\CaptchaAction',
                'operators' => ['+','-','*'],
                'maxValue' => 10,
                'fontSize' => 18,
            ],
    ];
}

In view, (*6)

<?=
$form->field($model, 'verifyCode')->widget(Captcha::className(), [
    'template' => '<div class="row"><div class="col-lg-2">{image}</div><div class="col-lg-10">{input}</div></div>',
])->hint('Hint: click on the equation to refresh')
?>

In config/web.php, (*7)

'rules' => [
    'site/captcha/<refresh:\d+>' => 'site/captcha',
    'site/captcha/<v:\w+>' => 'site/captcha',
]

screenshot, (*8)

The Versions

05/03 2017

dev-master

9999999-dev https://github.com/IntegReady/yii2-simplemath-captcha

Simple Math Captcha

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by IntegReady
by Henk Reitsma

yii2 captcha math

05/03 2017

1.0.3

1.0.3.0 https://github.com/IntegReady/yii2-simplemath-captcha

Simple Math Captcha

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by IntegReady

yii2 captcha math

27/02 2017

1.0.2

1.0.2.0 https://github.com/IntegReady/yii2-simplemath-captcha

Simple Math Captcha

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by IntegReady

yii2 captcha math

12/09 2016

1.0.1

1.0.1.0

Simple Math Captcha

  Sources   Download

BSD-3-Clause

The Requires

 

by Henk Reitsma

yii2 captcha math

12/09 2016

1.0

1.0.0.0

Simple Math Captcha

  Sources   Download

BSD-3-Clause

The Requires

 

by Henk Reitsma

yii2 captcha math