awesome-repositories.com
Blog
MCP
awesome-repositories.com

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

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
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 and symfony/finder round out the shortlist. 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
  • symfony/findersymfony avatar

    symfony/finder

    8,445View on GitHub↗

    This project is a PHP filesystem search component and file filtering library. It provides an object-oriented filesystem iterator designed to locate files and directories based on specific criteria. The library includes a project ignore file parser that allows the search process to respect version control exclusion patterns and metadata to skip unnecessary files. It covers a wide range of filtering capabilities, including the ability to isolate entries by name, path, size, and modification date. The tool also supports content-based filtering, type-based restrictions, and custom logic function

    This is a filesystem search and filtering component rather than a data validation library, meaning it is designed for file system traversal instead of validating user input or data structures.

    PHPFluent Interfaces
    View on GitHub↗8,445
  • pyeve/evepyeve avatar

    pyeve/eve

    6,738View on GitHub↗

    Eve is a REST API framework that maps database collections to web resources through declarative configuration files. It functions as a database-to-API mapper, automatically exposing data as RESTful endpoints with built-in support for CRUD operations and schema-based request validation. The project distinguishes itself through a HATEOAS API engine that generates hypermedia links and resource schemas for dynamic client discovery. It also includes an automated Swagger documentation generator that produces interactive specifications for client SDK generation and testing. The framework provides a

    This is a Python-based REST API framework rather than a PHP library, and its validation capabilities are internal features of the framework's data-mapping layer rather than a standalone tool for general-purpose data validation.

    PythonCustom Validation ExtensionsSchema Validation
    View on GitHub↗6,738

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