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

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

componenta/validation-app
=========================

Componenta application integration for compiled validation metadata

v1.0.1(yesterday)04↓50%1MITPHPPHP ^8.4CI passing

Since Aug 16Pushed yesterdayCompare

[ Source](https://github.com/componenta/validation-app)[ Packagist](https://packagist.org/packages/componenta/validation-app)[ RSS](/packages/componenta-validation-app/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (9)Versions (3)Used By (1)

Componenta Validation App
=========================

[](#componenta-validation-app)

Application integration for `componenta/validation`. It discovers validation attributes in development and compiles them into a versioned production map during `app:build`.

Installation
------------

[](#installation)

```
composer require componenta/validation-app
```

The package exposes `Componenta\Validation\App\ConfigProvider` through Composer metadata.

Build pipeline
--------------

[](#build-pipeline)

`ValidationDiscoveryIndex` receives the application class snapshot and records either:

- property rule descriptors for classes using `#[Required]`, `#[Validate]`, `#[When]`, `#[Unique]`, `#[Exists]`, and other validation attributes; or
- a validator service reference for classes using `#[ValidatedBy]`.

`ValidationMapCompiler` writes the versioned map to `Componenta\Validation\ConfigKey::COMPILED_VALIDATORS`. No validator classes are generated. At runtime the core package hydrates the descriptors through `RuleFactoryInterface` and creates the normal `Validator` through `ValidatorFactoryInterface`.

Concrete validator classes referenced by `#[ValidatedBy]` are also contributed as DI v4 autowiring roots. Interface validator ids are preserved as container service ids and are not sent to the autowiring compiler. Explicit aliases, factories, invokables, and services keep precedence over generated factories.

A class may not combine `#[ValidatedBy]` with property validation attributes. The build fails instead of silently choosing one source.

Run the production build with:

```
APP_ENV=development php bin/console.php app:build
```

The integration sets `ConfigKey::REQUIRE_COMPILED_VALIDATORS`. Consequently every non-development application fails during validation-provider creation when the compiled map is absent, malformed, or has an unsupported version. There is no silent reflection fallback in production; rebuild the application artifacts after changing validation attributes or validator service declarations.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance100

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20490712?v=4)[Andrey Shelamkoff](/maintainers/Shelamkoff)[@Shelamkoff](https://github.com/Shelamkoff)

---

Top Contributors

[![Shelamkoff](https://avatars.githubusercontent.com/u/20490712?v=4)](https://github.com/Shelamkoff "Shelamkoff (11 commits)")

---

Tags

validationattributescompilationcomponenta

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

6.0k40.8M432](/packages/respect-validation)[hyperf/validation

hyperf validation

122.2M213](/packages/hyperf-validation)[infocyph/intermix

A lightweight PHP DI container, invoker, serializer, and utility toolkit.

138.8k4](/packages/infocyph-intermix)

PHPackages © 2026

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