PHPackages                             meteo-concept/hiddenfieldantispam-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. meteo-concept/hiddenfieldantispam-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

meteo-concept/hiddenfieldantispam-bundle
========================================

A Symfony bundle to add a hidden field antispam mechanism in all forms

v1.3.0(1y ago)0110MITPHPPHP ^7.4|^8.0

Since Oct 3Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/Meteo-Concept/hiddenfieldantispam-bundle)[ Packagist](https://packagist.org/packages/meteo-concept/hiddenfieldantispam-bundle)[ RSS](/packages/meteo-concept-hiddenfieldantispam-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (9)Used By (0)

Hidden-field-based antispam bundle for Symfony 5+ [![Build Status v1](https://camo.githubusercontent.com/2dd59b275536c73c1ca00590d306cb8833441316b8417474af4c1f7726836406/68747470733a2f2f6170692e7472617669732d63692e636f6d2f4d6574656f2d436f6e636570742f68696464656e6669656c64616e74697370616d2d62756e646c652e7376673f6272616e63683d6d61696e)](https://api.travis-ci.com/Meteo-Concept/hiddenfieldantispam-bundle.svg?branch=main)
====================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#hidden-field-based-antispam-bundle-for-symfony-5-)

This bundle adds into each form a hidden field with an empty value. If the field comes back with a non-empty value, then we assume that the form was filled in by a bot and the form is rejected.

Installation
------------

[](#installation)

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require meteo-concept/hiddenfieldantispam-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Install the bundle with one of the commands above. You now have to enable it and configure it without the recipe.

#### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    MeteoConcept\HiddenFieldAntispamBundle\MeteoConceptHiddenFieldAntispamBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

Configure the bundle, for instance in `config/packages/meteo_concept_hidden_field_antispam.yml`:

```
meteo_concept_hidden_field_antispam:
    enabled: true # this is the default
    field_name: "meteo_concept_sentinel" # this is the default

twig:
    form_themes:
        - '@MeteoConceptHiddenFieldAntispam/hidden_field_antispam_form.html.twig' # to hide the antispam field
```

Usage
-----

[](#usage)

You have nothing else to do, the field is automatically added to all root (i.e. non-embedded forms).

Todo
----

[](#todo)

- Randomize the field name, just in case bots would become smart
- More advanced, randomize the field type while leaving it invisible

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance50

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~103 days

Recently: every ~180 days

Total

8

Last Release

592d ago

Major Versions

v0.1.1 → v1.0.02022-10-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bb39081145e058f55e9375d29d0c5c126bf806e0fa2dd5728c267fc24142c2f?d=identicon)[lgeorget](/maintainers/lgeorget)

---

Top Contributors

[![lgeorget](https://avatars.githubusercontent.com/u/4492093?v=4)](https://github.com/lgeorget "lgeorget (11 commits)")

### Embed Badge

![Health badge](/badges/meteo-concept-hiddenfieldantispam-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/meteo-concept-hiddenfieldantispam-bundle/health.svg)](https://phpackages.com/packages/meteo-concept-hiddenfieldantispam-bundle)
```

###  Alternatives

[rollerworks/password-strength-validator

Password-strength validator for Symfony

1455.7M6](/packages/rollerworks-password-strength-validator)[apy/jsfv-bundle

Symfony2 Javascript Form Validation Bundle with localisation support

92770.5k](/packages/apy-jsfv-bundle)[cuyz/valinor-bundle

Symfony integration of `cuyz/valinor` — a library that helps to map any input into a strongly-typed value object structure.

51215.0k2](/packages/cuyz-valinor-bundle)[isometriks/spam-bundle

Provides spam protection for Symfony forms

46200.6k1](/packages/isometriks-spam-bundle)[ddtraceweb/smtp-validator-email

Validate your email by smtp protocol

28143.4k](/packages/ddtraceweb-smtp-validator-email)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
