-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Muhammet Şafak edited this page Jun 10, 2026
·
1 revision
- PHP 8.1 or newer
-
ext-mbstring(used for Unicode-aware length and case handling) - No runtime dependencies beyond the PHP core
composer require initphp/validationThen make sure Composer's autoloader is loaded:
require __DIR__ . '/vendor/autoload.php';<?php
declare(strict_types=1);
require __DIR__ . '/vendor/autoload.php';
use InitPHP\Validation\Validation;
echo Validation::VERSION; // e.g. "2.0.0"Everything is reachable through one class:
use InitPHP\Validation\Validation;Exceptions live under the InitPHP\Validation\Exception namespace — see
Exceptions.
- Quick Start — your first validation in a few lines.
-
The Validation Lifecycle — how
rule()andvalidation()work together.
initphp/validation · MIT License · part of the InitPHP family
Source · Issues · Discussions · Packagist · Contributing · Security Policy
Getting Started
Rules
Extending
Messages
Reference
Guides
Other