PHPackages                             bustelo/mampara - 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. bustelo/mampara

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

bustelo/mampara
===============

PHP form security layer. Filters what reaches your code before your code knows it existed.

00

Since Mar 18Pushed 1mo agoCompare

[ Source](https://github.com/sbustelo/mampara)[ Packagist](https://packagist.org/packages/bustelo/mampara)[ RSS](/packages/bustelo-mampara/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mampara
=======

[](#mampara)

A security layer for PHP forms. Filters what reaches your code before your code knows it existed.

**Not a "SuperCerberus".** Mampara stops the automated noise — the 99% of bots trying random doors. A determined attacker who downloaded this code and has time to spare will eventually get through. That's honest.

Status
------

[](#status)

v3.0 — under active development. Not production-ready yet.

What it does
------------

[](#what-it-does)

- CSRF protection
- Rate limiting (IP + field value)
- Honeypot traps
- Unicode normalization (fancy fonts, fullwidth, combining diacritics)
- Progressive challenge (math obfuscated, Altcha PoW)
- Structured logging
- Clean `$_POST` passthrough for legacy code

What it doesn't do
------------------

[](#what-it-doesnt-do)

- SQL injection escaping (do that at the driver level)
- XSS in output (do that in your template engine)
- Post-authentication security
- Server-level hardening (HTTPS, HTTP headers)

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

[](#installation)

```
composer require bustelo/mampara
```

*Full docs coming with v3.0 stable.*

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance63

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a7dc9940c1e71cfbe27fe6b75f2e86d7d6d2022d39bcc2118e938772f3e280e?d=identicon)[sbustelo](/maintainers/sbustelo)

---

Top Contributors

[![sbustelo](https://avatars.githubusercontent.com/u/2727330?v=4)](https://github.com/sbustelo "sbustelo (1 commits)")

### Embed Badge

![Health badge](/badges/bustelo-mampara/health.svg)

```
[![Health](https://phpackages.com/badges/bustelo-mampara/health.svg)](https://phpackages.com/packages/bustelo-mampara)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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