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
Requires
- php: ^7.1.3
- symfony/form: ^4.4|^5.0|^6.0
- symfony/framework-bundle: ^4.4|^5.0|^6.0
- symfony/validator: ^4.4|^5.0|^6.0
Requires (Dev)
- phpunit/phpunit: ^4.8 || ^5.0
README
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