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

ActiveYii2-captcha

dynamikaweb/yii2-captcha
========================

Component for google reCaptcha or hCaptcha.

1.0.0(4y ago)31.1k↑50%1BSD-3-ClausePHPPHP &gt;=7.0

Since Dec 20Pushed 4y agoCompare

[ Source](https://github.com/dynamikaweb/yii2-captcha)[ Packagist](https://packagist.org/packages/dynamikaweb/yii2-captcha)[ RSS](/packages/dynamikaweb-yii2-captcha/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

dynamikaweb/yii2-captcha
========================

[](#dynamikawebyii2-captcha)

[![php version](https://camo.githubusercontent.com/9feb1c935ad88bd49ee3700e12fe28b70578b43bd59c3b58c19681201d8c6fc0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64796e616d696b617765622f796969322d63617074636861)](https://camo.githubusercontent.com/9feb1c935ad88bd49ee3700e12fe28b70578b43bd59c3b58c19681201d8c6fc0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64796e616d696b617765622f796969322d63617074636861)[![pkg version](https://camo.githubusercontent.com/8523311e9514db41d8dbf0ca1074791e84a80ecd5dee4032b41451bd275794a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64796e616d696b617765622f796969322d63617074636861)](https://camo.githubusercontent.com/8523311e9514db41d8dbf0ca1074791e84a80ecd5dee4032b41451bd275794a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64796e616d696b617765622f796969322d63617074636861)[![license](https://camo.githubusercontent.com/4f7cb9df7757d96f806f5f53ad7a3cc77c37da36a157b93169080444ecd1b70c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64796e616d696b617765622f796969322d63617074636861)](https://camo.githubusercontent.com/4f7cb9df7757d96f806f5f53ad7a3cc77c37da36a157b93169080444ecd1b70c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64796e616d696b617765622f796969322d63617074636861)[![quality](https://camo.githubusercontent.com/14d6c55971ed8af8758fc42e78d3536b6f5097db00055c1eea34923d1c5056c7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f64796e616d696b617765622f796969322d63617074636861)](https://camo.githubusercontent.com/14d6c55971ed8af8758fc42e78d3536b6f5097db00055c1eea34923d1c5056c7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f64796e616d696b617765622f796969322d63617074636861)[![build](https://camo.githubusercontent.com/496acaf1508987b283a49dd09c32efc911904f9049ac51b8008c45b3fc28c343/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f64796e616d696b617765622f796969322d63617074636861)](https://camo.githubusercontent.com/496acaf1508987b283a49dd09c32efc911904f9049ac51b8008c45b3fc28c343/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f64796e616d696b617765622f796969322d63617074636861)

Features
--------

[](#features)

- Custom alignment
- Centered by default
- Not jQuery dependent
- Not printable by default
- Development keys by default
- Better responsive Improvements
- Support for google [reCaptcha](https://developers.google.com/recaptcha) and also [hCaptcha](https://www.hcaptcha.com)
- Support for multiple validators, widgets and keys at the same time

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

[](#installation)

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

Either run

```
$ composer require dynamikaweb/yii2-captcha "*"
```

or add

```
"dynamikaweb/yii2-captcha": "*"
```

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

Usage
-----

[](#usage)

### Widget using input name

[](#widget-using-input-name)

- **View file**

```

```

### Widget using model (site key in model file)

[](#widget-using-model-site-key-in-model-file)

- **Model file**

```
