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.
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.
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.
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.
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.
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.
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.