PHPackages                             ga/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. ga/captcha

ActiveLibrary

ga/captcha
==========

yii2-captcha

15PHP

Since Jan 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/liuzexin/GACaptcha)[ Packagist](https://packagist.org/packages/ga/captcha)[ RSS](/packages/ga-captcha/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

GACaptcha(best,easy)
====================

[](#gacaptchabesteasy)

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

[](#installation)

`composer require ga/captcha dev-master`

Usage
-----

[](#usage)

1.Set up following code in `actions` method of `SiteController`.(Default) You can also change the "url" route what you want, but you should change the `captchaAction` property for CaptchaWidget in the next step.

```
Class SiteController extend yii\web\Controller
public function actions()
    {
        return [
            'captcha'=>[
                'class' => 'ga\captcha\CaptchaAction',
            ]
        ];
    }
```

2.Create `Widget` in the view file, and it's support the active mode.

```
