PHPackages                             elmnsk/yii2-honeypot - 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. [Security](/categories/security)
4. /
5. elmnsk/yii2-honeypot

ActiveYii2-extension[Security](/categories/security)

elmnsk/yii2-honeypot
====================

Protects forms from spam using 'honeypot' method

02.2kPHP

Since Apr 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/elmnsk/yii2-honeypot)[ Packagist](https://packagist.org/packages/elmnsk/yii2-honeypot)[ RSS](/packages/elmnsk-yii2-honeypot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Honeypot time extension for Yii2
================================

[](#honeypot-time-extension-for-yii2)

Protects the forms from spam using "honeypot" method

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

[](#installation)

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

Use composer

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

```

or add

```
"elmnsk/yii2-honeypot": "*"

```

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

Usage
-----

[](#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];
```

```
