PHPackages                             henningcullin/php-form-validation - 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. henningcullin/php-form-validation

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

henningcullin/php-form-validation
=================================

Lightweight PHP form validation library inspired by Fomantic UI.

v0.1.0(8mo ago)02MITPHPPHP &gt;=8.1

Since Oct 14Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/henningcullin/php-form-validation)[ Packagist](https://packagist.org/packages/henningcullin/php-form-validation)[ RSS](/packages/henningcullin-php-form-validation/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Form Validation
===================

[](#php-form-validation)

Lightweight PHP form validation library inspired by Fomantic UI.
Supports fields, rules, custom validation, and JSON export.

---

> ⚠️ **Warning:** This library is in early development (pre-1.0).
> APIs and behavior may change without notice. Use at your own risk.

---

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

[](#installation)

Using composer:

```
composer require henningcullin/php-form-validation
```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use FormValidation\Schema;
use FormValidation\Field;
use FormValidation\Rules\RuleEmail;

$field = Field::new('email')
    ->add_rule(RuleEmail::new('Invalid email'));

$schema = Schema::new()
    ->add_field($field);

$data = ['email' => 'test@example.com'];
$result = $schema->validate($data);

if ($result->is_ok()) {
    echo "All good!";
} else {
    print_r($result->get_errors());
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance59

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

262d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78604659?v=4)[Sgt. Cullin](/maintainers/henningcullin)[@henningcullin](https://github.com/henningcullin)

---

Top Contributors

[![henningcullin](https://avatars.githubusercontent.com/u/78604659?v=4)](https://github.com/henningcullin "henningcullin (17 commits)")

### Embed Badge

![Health badge](/badges/henningcullin-php-form-validation/health.svg)

```
[![Health](https://phpackages.com/badges/henningcullin-php-form-validation/health.svg)](https://phpackages.com/packages/henningcullin-php-form-validation)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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