sandritsch91/yii2-honey-pot

AntiSpam for Yii2

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:yii2-extension

2.0.2 2024-10-16 13:54 UTC

This package is auto-updated.

Last update: 2024-10-16 14:14:00 UTC


README

This extension provides form anti-spam features for the Yii 2.0 framework.

For license information check the LICENSE file.

Documentation is at docs/index.md.

Copyright

This extension was inspired by BeastBytes/yii2-anti-spam

BeastBytes' extension relies on modifications to the view files to work. If a lot of existing forms are to be modified, this can be a lot of work. This extension aims to provide the same functionality without the need to modify the view files.

To achieve this, this extension uses a custom ActiveField and multiple Traits which extend the default ActiveField / ActiveRecord / Model / DynamicModal classes. The custom ActiveField class adds the necessary hidden fields to the form and the Traits handle the attributes / validation

If extending the default ActiveField class is not an option, BeastBytes' original extension should be used.

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist sandritsch91/yii2-honey-pot

or add

"sandritsch91/yii2-honey-pot": "^1.0"

to the require section of your composer.json.