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

ActiveLibrary

dhii/validation-abstract
========================

Common abstract functionality for validation.

v0.1(8y ago)06.3k↑87.5%21MITPHPPHP ^5.3 | ^7.0

Since Mar 26Pushed 8y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (5)Versions (4)Used By (1)

Dhii - Validation Abstract
--------------------------

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

[![Build Status](https://camo.githubusercontent.com/2f176be027c8cf2e0856ffb3ef669e7656bbb66fd71e67caf8ebb986b42922ac/68747470733a2f2f7472617669732d63692e6f72672f446869692f76616c69646174696f6e2d61627374726163742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Dhii/validation-abstract)[![Code Climate](https://camo.githubusercontent.com/b9946b681bb1db42501552077377594309979627722ed5adef228a6bbf6ed89e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f76616c69646174696f6e2d61627374726163742f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/validation-abstract)[![Test Coverage](https://camo.githubusercontent.com/95be9f3614e1ea54b58925510c3e0dd28df9e2c947af8851e39a576428089dbd/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f76616c69646174696f6e2d61627374726163742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/validation-abstract/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/c7dc21e5812a5408f21ab8abe93d08ad104c195f11f8b2b9f8a8bd87ebd6e573/68747470733a2f2f706f7365722e707567782e6f72672f646869692f76616c69646174696f6e2d61627374726163742f76657273696f6e)](https://packagist.org/packages/dhii/validation-abstract)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Common abstract functionality for validation.

### Traits

[](#traits)

- [`ValidateCapableTrait`](src/ValidateCapableTrait.php) - Functionality for validation. Throws a [`ValidationFailedExceptionInterface`](https://github.com/Dhii/validation-interface/blob/develop/src/Exception/ValidationFailedExceptionInterface.php) if validation errors are detected.
- [`IsValidCapableTrait`](src/IsValidCapableTrait.php) - Determines whether a subject is valid in a boolean way.
- [`GetValidationErrorsCapableCompositeTrait`](src/GetValidationErrorsCapableCompositeTrait.php) - Uses a list of child validators to produce a list of errors.
- [`ChildValidatorsAwareTrait`](src/ChildValidatorsAwareTrait.php) - Awareness of child validators.
- [`ValidatorAwareTrait`](src/ValidatorAwareTrait.php) - Awareness of a validator.
- [`SpecAwareTrait`](src/SpecAwareTrait.php) - Awareness of a validation specification. Useful for validators geared to validate against a spec.
- [`ValidationSubjectAwareTrait`](src/ValidationSubjectAwareTrait.php) - Awareness of a validation subject, i.e. what is being validated.
- [`ValidationErrorsAwareTrait`](src/ValidationErrorsAwareTrait.php) - Awareness of a list of validation errors, i.e. reasons for validation failure.

###  Health Score

29

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

2938d ago

### 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 (116 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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