PHP Package: api-platform/validator

A PHP library for validating data structures and entities according to user-defined constraints and rules.

Current Version: 4.1.15
Last Updated: Date not available
PHP Requirement: >=8.2
Dependencies:
doctrine/annotations
⚠️ To ensure full functionality, the above dependencies might be required.

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.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 4.1.15

Download Download v4.1.15

Previous Versions

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.