PHPackages                             integready/yii2-simplemath-captcha - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. integready/yii2-simplemath-captcha

ActiveYii2-extension

integready/yii2-simplemath-captcha
==================================

Simple Math Captcha

1.0.3(9y ago)027BSD-3-ClausePHP

Since Sep 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/IntegReady/yii2-simplemath-captcha)[ Packagist](https://packagist.org/packages/integready/yii2-simplemath-captcha)[ Docs](https://github.com/IntegReady/yii2-simplemath-captcha)[ RSS](/packages/integready-yii2-simplemath-captcha/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Captcha With a Simple Math Equation
===================================

[](#captcha-with-a-simple-math-equation)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

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

```

or add

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

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

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

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

In view

```
