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(7mo ago)02MITPHPPHP &gt;=8.1

Since Oct 14Pushed 7mo 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 1mo ago

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

28

—

LowBetter than 54% of packages

Maintenance65

Regular maintenance activity

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

214d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/708110ed77f8959d531435aaf58709b7f6bad683498a6fd810ff4b80ce5cae83?d=identicon)[henningcullin](/maintainers/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

[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)
