sandritsch91 / yii2-honey-pot
AntiSpam for Yii2
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: >=8.1
- yiisoft/yii2: ^2.0.50
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.