rattler/honeypot-bundle

Rattler Honeypot Bundle

Installs: 19 758

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

2.0.1 2016-06-15 15:39 UTC

This package is auto-updated.

Last update: 2024-04-11 02:17:15 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).