awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

PHP Validation Libraries

Ranking updated Jul 13, 2026

For a library for validating data in PHP, the strongest matches are symfony/validator (This library is a comprehensive, PSR-compliant validation engine that), respect/validation (Respect/Validation is a comprehensive PHP library that provides a) and vlucas/valitron (Valitron is a lightweight, dependency-free PHP validation library that). cakephp/validation is also worth a look. Each is ranked by relevance to your query, popularity and recent activity.

We curate open-source GitHub repositories matching “best php validation libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

PHP Validation Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • symfony/validatorsymfony avatar

    symfony/validator

    2,689View on GitHub↗

    This library is a PHP framework for enforcing data integrity and business rules by validating scalar values and complex object structures against predefined constraints. It provides a structured approach to inspecting object graphs and property metadata, ensuring that data conforms to expected requirements before it is processed by an application. The framework distinguishes itself through a metadata-driven mapping system that uses reflection or configuration files to apply rules directly to object properties. It supports contextual rule orchestration, allowing developers to organize constrai

    This library is a comprehensive, PSR-compliant validation engine that supports schema-based object mapping, custom constraint rules, and localized error reporting, making it a flagship tool for data integrity in PHP.

    PHPData ValidationPHP Validation LibrariesConstraint Mappings
    View on GitHub↗2,689
  • respect/validationRespect avatar

    Respect/Validation

    6,027View on GitHub↗

    Respect/Validation is a PHP validation library that operates on single input values through a fluent, chainable rule system. Each validator instance builds a linear constraint pipeline by appending rules to an internal stack, executing them sequentially and short-circuiting on the first failure. The library captures validation failures as structured exceptions, enabling callers to inspect detailed error metadata programmatically and respond with meaningful messages. The library distinguishes itself through its exception-based error handling model, which provides programmatic access to validat

    Respect/Validation is a comprehensive PHP library that provides a highly fluent, chainable API for building complex validation rules, making it a flagship tool for validating data structures and user input.

    PHPPHP Validation LibrariesException-Based Error HandlingFluent Validation Rules
    View on GitHub↗6,027
  • vlucas/valitronvlucas avatar

    vlucas/valitron

    1,603View on GitHub↗

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

    Valitron is a lightweight, dependency-free PHP validation library that provides a fluent API and support for custom rules, making it a solid choice for validating user input.

    PHPValidation and Sanitization
    View on GitHub↗1,603
  • cakephp/validationcakephp avatar

    cakephp/validation

    42View on GitHub↗

    READ-ONLY Validation library from CakePHP. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

    This library provides a robust, schema-based validation system with support for custom rules and a fluent API, making it a direct fit for your data validation needs in PHP.

    PHPValidation and Sanitization
    View on GitHub↗42

Related searches

  • a lightweight validation library for JavaScript
  • a java library for data validation
  • a data validation library for Go
  • a data validation library for Rust
  • a form validation library for React
  • a data validation library using Python type hints
  • a testing framework for PHP applications
  • a library for model attribute validation