rattler / honeypot-bundle
Rattler Honeypot Bundle
Installs: 19 768
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/form: ~2.3|~3.0
- symfony/framework-bundle: ~2.3|~3.0
- symfony/validator: ~2.3|~3.0
This package is auto-updated.
Last update: 2024-12-11 03:37:55 UTC
README
A Symfony bundle that provides a very simple invisible Honeypot form type
For Symfony 2 use version 1.0.
Installation
Add bundle to composer.json
"require": {
// ...
"rattler/honeypot-bundle": "~2.0",
}
Enable RattlerHoneypotBundle
// config/bundles.php
return [
// ...
Rattler\HoneypotBundle\RattlerHoneypotBundle::class => ['all' => true],
];
Usage
Add the following to to an existing form.
$builder->add('text', HoneypotType::class);
The name of the field can be changed to anything (generic names seems to work better).