Modern PHP 8.2+
Strict types, fully typed codebase with maximum static analysis at PHPStan Level 8.
A zero-dependency, security-first PHP validation library
$ composer require frostybee/valicomb 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());
} Strict types, fully typed codebase with maximum static analysis at PHPStan Level 8.
Only requires the standard ext-mbstring extension. No external packages needed.
Comprehensive rule set covering strings, numbers, dates, arrays, networks, and more.
Built-in protection against ReDoS, type juggling, path traversal, and injection attacks.
Internationalization support with 22 languages included out of the box.
Add custom validation rules with simple closures or global rule registration.