PHP 8.2+

Valicomb

A zero-dependency, security-first PHP validation library

$ composer require frostybee/valicomb
Quick Example
use Frostybee\Valicomb\Validator;

$v = new Validator([
    'email' => 'test@example.com',
    'age'   => '25'
]);

$v->rule('required', ['email', 'age']);
$v->rule('email', 'email');
$v->rule('integer', 'age');

if ($v->validate()) {
    echo "Validation passed!";
} else {
    print_r($v->errors());
}
use Frostybee\Valicomb\Validator;

$v = new Validator([
    'email' => 'test@example.com',
    'age'   => '25'
]);

$v->rule('required', ['email', 'age']);
$v->rule('email', 'email');
$v->rule('integer', 'age');

if ($v->validate()) {
    echo "Validation passed!";
} else {
    print_r($v->errors());
}

Built for modern PHP development

Modern PHP 8.2+

Strict types, fully typed codebase with maximum static analysis at PHPStan Level 8.

Zero Dependencies

Only requires the standard ext-mbstring extension. No external packages needed.

53 Validation Rules

Comprehensive rule set covering strings, numbers, dates, arrays, networks, and more.

Security First

Built-in protection against ReDoS, type juggling, path traversal, and injection attacks.

22 Languages

Internationalization support with 22 languages included out of the box.

Easy to Extend

Add custom validation rules with simple closures or global rule registration.