Releases: rakit/validation
Releases · rakit/validation
v1.0.0
Changelogs
Added
- Rule
mimesto validate mime types from$_FILEdata. (3924708) - Method
Helper::jointo join array of string with given separator and last separator. (8e99f34) - Method
Helper::wrapsto wraps array of string with given prefix and suffix. (8e99f34) - Trait
Rakit\Validation\Traits\TranslationsTraitcontains setter and getter translations. (bb8c375) - Method
Rule::setParameterTextto set custom parameter text that can be used in invalid message. (550c6c4) - Method
Rule::getParametersTextsto get custom parameters texts. (550c6c4) - PHP_Codesniffer. (91ff927)
- Typehints and PHPDoc comments. (#67)
Changed
- PHP minimum version from 5.5 to 7.0. (#62)
- Rule
uploaded_filecan be used to validate multiple file uploads. (#71) Rakit\Validation\ErrorBag::firstOfAll()return array assoc instead of indexed array. (69b5110)Rakit\Validation\Rule::check()must returnbool. (#68)- Rules
min,max, andbetweencan be used to validate uploaded file size from$_FILES. (ae3a47b) - Rule
uploaded_filedefault message is dynamic depends on what caused. (0db9279) - Rule
inandnot_indefault messages shows what options are allowed or not allowed. (0db9279) - Rule
defaultusing traitRakit\Validation\Rules\Traits\ModifyValueto modify value if it's empty. (#71)