| What it is | Fluent validation engine for PHP with more than 150 validators | Assertions to validate PHP method input and output with clear error messages | Thin assertion library for input validation in PHP business models and libraries | PHP email address validation against the email RFCs |
| Features | - chainable fluent validation rules
- 150+ tested validators
- advanced exception handling
| - Assertions that throw InvalidArgumentException with readable messages
- Custom error messages with consistent placeholder ordering
- nullOr and all variants of every assertion
- Psalm assertion annotations and a native Psalm plugin for type inference
- Overridable hooks for value formatting and failure reporting
| - static assertion methods that throw on failure
- nullOr and all helpers
- fluent Assert::that() chains
- lazy assertions that report every failure at once
- custom exception messages and your own assertion class
| - RFC 5321, 5322, 6530, 6531, 6532 and 1035 validation
- strict validation that fails on RFC warnings
- DNS check for records showing the domain accepts email
- Message-ID validation (RFC 2822)
- spoof check for look-alike multi-byte characters
- combine validations with a logical AND, or add your own
|