PHPackages                             codin/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. codin/validation

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

codin/validation
================

Input validator

12PHP

Since Nov 19Pushed 5y agoCompare

[ Source](https://github.com/codin/validation)[ Packagist](https://packagist.org/packages/codin/validation)[ RSS](/packages/codin-validation/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Validator
---------

[](#validator)

Symfony like array validation

```
$validator = new Validation\ArrayValidator();

$validator->addConstraint('first_name', new Validation\Assert\Length(['min' => 3]));

$validator->addConstraint('last_name', new Validation\Assert\Present());

$violations = $validator->validate(['first_name' => 'me']);

echo $violations->count(); // 1
echo count($violations); // 1

print_r($violations->getMessages());

Array
(
    [first_name] => Array
        (
            [0] => first name must be greater than or equal to 3 characters
        )

    [last_name] => Array
        (
            [0] => last name must be present
        )
)

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

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/caaa77e482db0b7e6340c815a767adfa0c910d7ad437427a51702a619a202de9?d=identicon)[rwarasaurus](/maintainers/rwarasaurus)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/codin-validation/health.svg)

```
[![Health](https://phpackages.com/badges/codin-validation/health.svg)](https://phpackages.com/packages/codin-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)
