elmnsk/yii2-honeypot Protects forms from spam using 'honeypot' method

extensionhoneypot

Honeypot time extension for Yii2

Protects the forms from spam using "honeypot" method

Installation

The preferred way to install this extension is through composer.

Use composer

composer require --prefer-dist elmnsk/yii2-honeypot "*"

or add

"elmnsk/yii2-honeypot": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

//model property
public $honeypotTime;

//in model rules
 ['honeypotTime',\elmnsk\yii2honeypot\HoneypotTimeValidator::class,'time'=>10];
<?=$form->field($model,'honeypotTime')
            ->widget(\elmnsk\yii2honeypot\HoneypotTimeWidget::class)->label(false);?>

'time' - this is the time in seconds, less than which the form submission will be detected as spam

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
0 github stars & 0 github forks
0 downloads in the last day
12 downloads in the last 30 days
128 total downloads