PHPackages                             amnah/yii-recaptcha - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. amnah/yii-recaptcha

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

amnah/yii-recaptcha
===================

Yii - Recaptcha widget and validator

21.4kPHP

Since Oct 1Pushed 12y ago1 watchersCompare

[ Source](https://github.com/amnah/yii-recaptcha)[ Packagist](https://packagist.org/packages/amnah/yii-recaptcha)[ RSS](/packages/amnah-yii-recaptcha/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

YiiRecaptcha
============

[](#yiirecaptcha)

Yii Recaptcha extension. This simple extension was built to give developers full control over their recaptcha styling via custom theming.

Please see .

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

[](#installation)

- Install via composer -
- OR extract files into vendor dir - **protected/vendor/amnah/yii-recaptcha**

Usage
-----

[](#usage)

- Ensure that you have a model with an appropriate "recaptcha" attribute
- Add path alias (modify path as needed)

```
Yii::setPathOfAlias('YiiRecaptcha',Yii::getPathOfAlias("application.vendor.amnah.yii-recaptcha"));
```

- Call widget in view file (take note of the **style** attribute, as that determines the function it calls)

```
