PHP Package: laminas/laminas-validator

Laminas Validator provides a comprehensive set of commonly needed validators for common use cases in PHP applications.

Current Version: 3.4.1
Last Updated: 2025-06-11
PHP Requirement: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
Dependencies:
laminas/laminas-escaper
laminas/laminas-filter
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laminas Validator is a versatile and powerful PHP library that offers a variety of validation options to ensure data integrity and security in web applications. With a wide range of built-in validators, it simplifies the process of validating form inputs, user inputs, and other data types. Whether you need to check email addresses, URLs, or numeric values, Laminas Validator has you covered. It promotes clean and secure code practices by enabling developers to easily validate user input and prevent common security vulnerabilities.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.4.1

Download Download v3.4.1

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/laminas/laminas-validator/3.4.1/loader.php';
require_once 'libs/laminas/laminas-escaper/2.17.0/loader.php';
require_once 'libs/laminas/laminas-filter/3.0.0/loader.php';

use Laminas\Validator\EmailAddress;
use Laminas\Validator\NotEmpty;

$obj = new EmailAddress();
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.