PHP Package: api-platform/validator
A PHP library for validating data structures and entities according to user-defined constraints and rules.
Package Description
The Validator library by api-platform is a robust PHP tool designed to ensure data integrity and consistency by validating entities, objects, and arrays based on predefined constraints. With a focus on flexibility and ease of use, this library offers a comprehensive suite of validation features, including support for custom validation rules, error messages, and group validations. By leveraging this library, developers can effortlessly validate complex data structures and enforce business rules, ultimately enhancing the reliability and accuracy of their applications.
Download Latest Version: 4.1.15

Previous Versions
v4.1.1
v4.1.2 - Coming soon
v4.1.3 - Coming soon
v4.1.4 - Coming soon
v4.1.5 - Coming soon
v4.1.6 - Coming soon
v4.1.7 - Coming soon
v4.1.8
v4.1.9
v4.1.12
Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/api-platform/validator/4.1.15/loader.php';
require_once 'libs/doctrine/annotations/2.0.2/loader.php';
use Symfony\Component\Validator\Constraints\NotBlank;
use Doctrine\Common\Annotations\Annotation;
use ApiPlatform\Validator\Validator;
$obj = new NotBlank();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.