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

ActiveLibrary

lamiaoy/validation
==================

1.0.2(8y ago)012.1k1PHPCI failing

Since Feb 23Pushed 6y ago4 watchersCompare

[ Source](https://github.com/Lamia/validation)[ Packagist](https://packagist.org/packages/lamiaoy/validation)[ RSS](/packages/lamiaoy-validation/feed)WikiDiscussions master Synced 1mo ago

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

README
======

[](#readme)

General Validation library

### Overview and structure

[](#overview-and-structure)

The library provides a collection of interfaces and some default implementations for the task of validation.

**ValidationUtils** is an interface of common functions that can be shared through validating classes (typically implementing for example TypeValidation)

**ValidationDefaultValues** is an interface providding a list of default values for validation constraints so if the constraint x is not set for field y, the constraint x will be validated against default value for field y (this way only the values differing from default need to be confed).

- ValidationDefaultValuesImpl is an implementing class that takes it's values from ini file that is injected as a path to constructor of the class.

**ValidationCollection** is a collection of TypeValidations.

**TypeValidation** is a general interface for a simple validation.

- Implementing base class is AbstractTypeValidation
- - Common validation functions injected as ValidationUtils interface
- - Default values injected as ValidationDefaultValues interface
- ArrayValidation, StringValidation etc typically extend AbstractTypeValidation
- GeneralValidation is an implementation that coordinates a group of TypeValidation implementations injected to it in ValidationCollection through constructor. The TypeValidation implementation of given type is used for validating, unless not defined whereas the default type is used.

**Validation** is a general interface for taking an array of fields and validating them with constructor injected TypeValidation against the field constraint configuration also injected into constructor.

### Example usage

[](#example-usage)

### Contribution guidelines

[](#contribution-guidelines)

- Implementation classes must be unit tested

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~66 days

Total

3

Last Release

3238d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e30971137e3c537dbbcb4b63506e5465e2c18970e749d4edf3838abf147a1236?d=identicon)[LamiaOy](/maintainers/LamiaOy)

---

Top Contributors

[![szymonnosal](https://avatars.githubusercontent.com/u/2638749?v=4)](https://github.com/szymonnosal "szymonnosal (4 commits)")[![majkrzak](https://avatars.githubusercontent.com/u/3064914?v=4)](https://github.com/majkrzak "majkrzak (1 commits)")

---

Tags

composer-libraryphp-libraryvalidationutils

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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