A Symfony bundle that provides a very simple invisible Honeypot form type
For Symfony 2 use version 1.0.
"require": {
// ...
"rattler/honeypot-bundle": "~2.0",
}
// config/bundles.php
return [
// ...
Rattler\HoneypotBundle\RattlerHoneypotBundle::class => ['all' => true],
];
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).