# Respect/Validation

The most awesome validation engine ever created for PHP

Repository: https://github.com/Respect/Validation
Canonical: https://ross.abutalabs.com/products/validation
Homepage: https://respect-validation.readthedocs.io
Language: PHP
License: MIT
License Family: permissive
Topics: php, validation, validation-engine, fluent-interface, validator, standalone, components
Last push: 2026-08-26T14:33:10+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 94, longevity 100
- inputs: {"age_days": 5824, "days_push": 7, "days_rel": 42, "gap_med": 4, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6028, forks 774 (observed 2026-08-28T04:09:34.383986+00:00)

## What it is
Respect/Validation is a standalone PHP validation library offering a fluent interface with over 150 fully tested validators. It simplifies complex validation chains and provides advanced exception handling for reporting validation failures.

## Use cases
- validate user input in PHP forms
- check that a value is a positive number between 1 and 255
- validate emails, dates, and other data formats in PHP
- collect detailed validation error messages for API requests
- add data validation rules to a PHP application without a framework

## When to choose
- you need a comprehensive, standalone validation engine for PHP
- you want a fluent, chainable API for building complex validation rules
- you need detailed exception-based error reporting for invalid input

## When to avoid
- your project is not written in PHP
- you only need simple validation already covered by your framework's built-in validators
- you need client-side (JavaScript) validation

## Facets
- artifact type: library
- maturity: active
- function: testing, form-handling, developer-tools
- domain: developer-tools, web-development, backend
- platform: php, cli
- tags: validation, fluent-interface, validator, input-validation, php-library

## Member repositories
- Respect/Validation (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.383986+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:49:14.112933+00:00, confidence not recorded.
  - readme: https://github.com/Respect/Validation (fetched 2026-08-28T04:09:34.383986+00:00, sha 281b438fb411)
- Data as of 2026-08-30T08:39:29.467469+00:00.
