nzo/honeypot-bundle

Honeypot solution for Symfony forms.

Installs: 770

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v1.2.0 2021-12-06 08:25 UTC

This package is auto-updated.

Last update: 2024-12-06 15:00:25 UTC


README

Build Status Latest Stable Version

The NzoHoneypotBundle is a Symfony bundle that provides a very simple way to handle Honeypot form types.

This Bundle is compatible with Symfony >= 4.4

Installation

Through Composer:

$ composer require nzo/honeypot-bundle

Usage

Basic usage example in the Form:

<?php

namespace Acme\DemoBundle\Form\Type;

use Nzo\HoneypotBundle\Form\Type\HoneypotType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

class FooType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        // ...
        // Honeypot field
        $builder->add('SOME-FAKE-NAME', HoneypotType::class);
    }
}

License

This bundle is under the MIT license. See the complete license in the bundle:

See LICENSE