Changelog
All notable changes to Valicomb are documented on this page.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.1.0] - 2026-01-04
Section titled “[1.1.0] - 2026-01-04”- Documentation website using Astro Starlight
- Strict mode for stricter validation behavior
- Inline custom messages support for per-rule error messages
- New validation rules:
urlStrictfor URL validation with required schemeuuidwith support for versions 1-5startsWithandendsWithfor string prefix/suffix validationdecimalPlacesfor controlling decimal precisionpositivefor strictly positive numberspastandfuturefor date validationphonewith support for 12 countriesrequiredWith/requiredWithoutfor conditional validationIPv4/IPv6/ASCIIfor network and character validationarrayHasKeysfor required array keys
- Case-insensitive option for string matching rules
- Resolved multiple issues from the original Valitron library (see Valitron Issues Fixed for details)
[1.0.1] - 2025-11-16
Section titled “[1.0.1] - 2025-11-16”Complete rewrite of the Valitron validation library for modern PHP.
Core Features
Section titled “Core Features”- PHP 8.2+ with strict types throughout
- Zero dependencies (only
ext-mbstringrequired) - Automatic ReDoS pattern detection
- RFC 5321 email validation with length limits
- PHPStan Level 8 compliance
- PSR-12 code style
- 430+ tests
- 33 language translations
Architecture
Section titled “Architecture”- Extracted core classes (ErrorManager, LanguageManager, RuleRegistry)
- Organized validation rules into trait files
- Clean separation of concerns
Changed
Section titled “Changed”numericrule now properly handles scientific notation (e.g.,1.2e3)- Strict equality comparisons (no type juggling)
- Path traversal protection in language loading
Upgrade Notes
Section titled “Upgrade Notes”Migrating from Valitron
Section titled “Migrating from Valitron”If you’re migrating from vlucas/valitron:
-
Namespace change
// Beforeuse Valitron\Validator;// Afteruse Frostybee\Valicomb\Validator; -
PHP version requirement
- Valicomb requires PHP 8.2+
- Update your
composer.jsonaccordingly
-
Strict types
- All code uses strict types
- Ensure your data types are correct
-
Deprecated methods
mapFieldRules()→ UsemapOneFieldToRules()
mapFieldsRules()→ UsemapManyFieldsToRules()
Reporting Issues
Section titled “Reporting Issues”Found a bug? Have a feature request?
- GitHub Issues
- For security issues, please use GitHub’s private security advisory feature.