# vlucas/valitron

Valitron is a simple, elegant, stand-alone validation library with NO dependencies

Repository: https://github.com/vlucas/valitron
Canonical: https://ross.abutalabs.com/products/valitron
Language: PHP
License: BSD-3-Clause
License Family: permissive
Topics: validation, php, validator, hacktoberfest
Last push: 2024-04-16T08:09:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4966, "days_push": 869, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1604, forks 249 (observed 2026-08-28T04:05:09.924528+00:00)

## What it is
Valitron is a lightweight, standalone input validation library for PHP with zero dependencies. It provides a simple, fluent rule-based API for validating arrays of data such as $_POST input, with support for custom validation rules and dot-notation access to nested arrays.

## Use cases
- validate form input in php
- validate $_POST data before saving
- check required fields and email format in php
- validate nested arrays with dot syntax
- add custom validation rules without dependencies
- lightweight php validation library for small projects

## When to choose
- you need a dependency-free validation library for a PHP project
- you want simple, readable validation rules applied in a single call
- you are validating plain arrays like form submissions or JSON-decoded data
- you need to extend validation with custom callback rules

## When to avoid
- you need framework-integrated validation with ORM or request object support
- you require advanced features like conditional rule groups or schema-based validation
- your project already uses a full-featured framework validator like Laravel's or Symfony's

## Facets
- artifact type: library
- maturity: active
- function: form-handling, developer-tools
- domain: web-development, backend, developer-tools
- platform: php, cross-platform
- tags: validation, validator, data-validation, zero-dependencies, input-validation, form-validation

## Member repositories
- vlucas/valitron (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:09.924528+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-30T03:52:21.752069+00:00, confidence not recorded.
  - readme: https://github.com/vlucas/valitron (fetched 2026-08-28T04:05:09.924528+00:00, sha 7213f56f1064)
- Data as of 2026-08-30T08:39:29.467469+00:00.
