PHPackages                             bigpaulie/dynamic-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. bigpaulie/dynamic-form-validation

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

bigpaulie/dynamic-form-validation
=================================

PHP Dynamic form validation

1.0.1(9y ago)012MITPHPPHP ^5.6 || 7.0

Since Jul 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bigpaulie/dynamic-form-validator)[ Packagist](https://packagist.org/packages/bigpaulie/dynamic-form-validation)[ RSS](/packages/bigpaulie-dynamic-form-validation/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

dynamic-form-validator [![Build Status](https://camo.githubusercontent.com/8591acfa4eda9d90bc0f693b990243781f249e1f99d1ce2ab2401e948b5c9a2f/68747470733a2f2f7472617669732d63692e6f72672f6269677061756c69652f64796e616d69632d666f726d2d76616c696461746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bigpaulie/dynamic-form-validator)
======================================================================================================================================================================================================================================================================================================================================================

[](#dynamic-form-validator-)

This is a simple PHP library for dynamic form validation. It was written with my own needs in mind, it may not be the best library but it does the job for me.

### Installation

[](#installation)

Install the package via composer using :

```
composer require --prefer-dist bipaulie/dynamic-form-validation

```

### Usage

[](#usage)

First you should get an instance for the validator, pass it the rules array and data to be validated.

```
$rules = ['/input_name_([0-9]+)/i' => 'filter_name'];

$validator = new Validator();
$validator->setRules($rules)->setRequest($request);

try {
    if ( $validator->run() ) {
        echo "Validation successful.";
    } else {
        echo "Validation failed.";
    }
} catch ( \Exception $e ) {
    echo $e->getMessage();
}

```

### Available filters

[](#available-filters)

#### String validation

[](#string-validation)

The "string" filter validates strings of characters containging : letters, numbers, spaces, dots and hyphens.

#### Date validation

[](#date-validation)

The "date" filter validates dates of the follwing formats :

```
* d/m/Y
* m/d/Y
* d/m/y
* m/d/y

```

#### Email validation

[](#email-validation)

The "email" filter validates email addresses

#### Numeric validation

[](#numeric-validation)

The "numerical" filter validates numerical values such as integers and floats

#### Password validation

[](#password-validation)

The "password" filter validates passwords of the following format:

- Has at least one uppercase letter
- Has at least one number
- Has at least one special character (!,@,#,$)
- Is at least 8 characters long

#### Examples

[](#examples)

Checkout the examples directory form some examples on how to use the validator.

#### Contribution

[](#contribution)

If you like the library and you feel like something is missing or fix a potential bug, please feel free to submit a pull request, if I like your idea or it's useful I will merge it with the repository.

A final note about this library. I'm using "git flow" to manage this repository, the main branch here is called "**develop**" not master.

**Thank you for using and contributing.**

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~0 days

Total

2

Last Release

3622d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1706d209e8e01305b6823045fac6d363e149abd14a4bd20397d237ea1107a2b4?d=identicon)[bigpaulie](/maintainers/bigpaulie)

---

Top Contributors

[![bigpaulie](https://avatars.githubusercontent.com/u/5903753?v=4)](https://github.com/bigpaulie "bigpaulie (19 commits)")

### Embed Badge

![Health badge](/badges/bigpaulie-dynamic-form-validation/health.svg)

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

PHPackages © 2026

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