PHPackages                             phpyh/validator - 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. phpyh/validator

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

phpyh/validator
===============

Mother's friend's son's validator

2001PHP

Since Oct 2Pushed 5y ago4 watchersCompare

[ Source](https://github.com/phppoint/validator)[ Packagist](https://packagist.org/packages/phpyh/validator)[ RSS](/packages/phpyh-validator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHPyh Validator
===============

[](#phpyh-validator)

[«Валидатор сына маминой подруги», — Роман Пронский.](https://youtu.be/liMyAuxIoyM?t=5491)

[![alt text](refactoring.jpg)](refactoring.jpg)

```
namespace PHPyh\Validator;

$validator = new Validator(
    new RuleHandlerRegistry\InMemoryRuleHandlerRegistry([
        new Rule\AllHandler(),
        new Rule\AnyHandler(),
        new Rule\ObjectPropertiesHandler(),
        new Rule\GreaterThanHandler(),
    ])
);

final class SomeDto
{
    public int $age = 10;
    public int $height = 130;
}

$errors = $validator->validate(
    new SomeDto(),
    new Rule\Any([
        new Rule\ObjectProperties([
            'age' => new Rule\GreaterThan(18),
            'height' => new Rule\GreaterThan(150),
        ])
    ])
);
```

References
----------

[](#references)

- [My explanations of the architecture in Russian](https://youtu.be/liMyAuxIoyM?t=4308)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

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://avatars.githubusercontent.com/u/2552865?v=4)[Valentin Udaltsov](/maintainers/vudaltsov)[@vudaltsov](https://github.com/vudaltsov)

---

Top Contributors

[![vudaltsov](https://avatars.githubusercontent.com/u/2552865?v=4)](https://github.com/vudaltsov "vudaltsov (2 commits)")

### Embed Badge

![Health badge](/badges/phpyh-validator/health.svg)

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

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