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

ActiveLibrary

dhii/validation-base
====================

Base concrete functionality for validation.

v0.1(9y ago)06.2k↑87.5%1MITPHPPHP ^5.3 | ^7.0

Since Mar 26Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Dhii/validation-base)[ Packagist](https://packagist.org/packages/dhii/validation-base)[ RSS](/packages/dhii-validation-base/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (5)Used By (1)

Dhii - Validation - Base
========================

[](#dhii---validation---base)

[![Build Status](https://camo.githubusercontent.com/c1bf6012a95f2ce4d6e8639c4d236d91449c9e952f777e75b81be303f0c4f3fe/68747470733a2f2f7472617669732d63692e6f72672f446869692f76616c69646174696f6e2d626173652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Dhii/validation-base)[![Code Climate](https://camo.githubusercontent.com/8344fc76f3ade8bc1971f21f1caa33b5a54154f70b478c1abd4c965645997269/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f76616c69646174696f6e2d626173652f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/validation-base)[![Test Coverage](https://camo.githubusercontent.com/210450a6a07828edd5171bf5b1415adf537dae86ef8167f956fe81c017df7218/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f76616c69646174696f6e2d626173652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/validation-base/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/63343079172a091b9c104a480d521b882c736d34043a64e9421651020c4dd9b1/68747470733a2f2f706f7365722e707567782e6f72672f646869692f76616c69646174696f6e2d626173652f76657273696f6e)](https://packagist.org/packages/dhii/validation-base)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Base concrete functionality for validation.

Details
-------

[](#details)

This package defines concrete exceptions, and implements their factories in a validator specialization. It also provides a base for composite validators. All this allows quick creation of validators compliant with the Dhii [validation standard](https://packagist.org/packages/dhii/validation-interface).

### Classes

[](#classes)

- [`AbstractValidatorBase`](src/AbstractValidatorBase.php) - The base class for validators that perform a single validation.
- [`AbstractCompositeValidatorBase`](src/AbstractCompositeValidatorBase.php) - The base class for validators that delegate to one or more iterators.
- [`ValidationException`](src/Exception/ValidationException.php) - A concrete exception related to validation or a validator.
- [`ValidationFailedException`](src/Exception/ValidationFailedException.php) - A concrete exception that signals validation failure, and exposes aspects of the validation.
- [`ValidatorTrait`](src/ValidatorTrait.php) - A group of traits commonly used for validation.
- [`CreateValidationExceptionCapableTrait`](src/CreateValidationExceptionCapableTrait.php) - Validation exception factory.
- [`CreateValidationFailedExceptionCapableTrait`](src/CreateValidationFailedExceptionCapableTrait.php) - Validation failed exception factory.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

3

Last Release

2959d ago

PHP version history (2 changes)v0.1PHP ^5.3 | ^7.0

v0.2-alpha1PHP ^5.4 | ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (87 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/dhii-validation-base/health.svg)](https://phpackages.com/packages/dhii-validation-base)
```

PHPackages © 2026

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