Download the PHP package axelpal/yii2-recaptcha-widget without Composer
On this page you can find all versions of the php package axelpal/yii2-recaptcha-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-recaptcha-widget
Google reCAPTCHA widget for Yii2
Based on reCaptcha API 2.0.
Installation
The preferred way to install this extension is through composer.
- Either run
or add
to the require
section of your application's composer.json
file.
-
Configure the component in your configuration file (web.php). The parameters siteKey and secret are optional. But if you leave them out you need to set them in every validation rule and every view where you want to use this widget. If a siteKey or secret is set in an individual view or validation rule that would overrule what is set in the config.
- Add
ReCaptchaValidator
in your model, for example:
or just
or simply
Usage
For example:
or
or
or simply