valitron
valitron copied to clipboard
Valitron is a simple, elegant, stand-alone validation library with NO dependencies
Hello, I use this library for validation registration form. But, when I try to check two fields - password and confirmPassword to equality with "equals" rule, it works incorrectly. Firslty,...
Hi Can we set all labels using an array with a syntax similar to Alternate syntax for adding rules. I was thinking something like this ` $messages = [ 'required'...
When a field in the data set has the optional rule and a value of null it should still be validated, as it is set. However, if the field is...
Hello I think it will be useful to have a feature where you can validate if one the rules is satisfied instead always validate if all rules are satisfied.
Hi, How can I add custom message for new custom validation rules in lang files? I mean instead of hard coding the new message, the code it self should be...
I propose arrayLength, validateArrayLengthMin, validateArrayLengthMax, validateArrayLengthBetween. Analogs of the string length check. The code is trivial, so I haven't included it here. I'd like to see it in the next...
So for a while, I've been thinking about how validation plugins for different languages/platforms each have their own particular "language" for specifying validation rules and parameters. For example, [FormValidation](https://github.com/formvalidation/formvalidation/issues/1415) has...
I am validating an array like so: ``` $v->rule('numeric', array('grades.*')); $v->rule('min', array('grades.*'), 0); $v->rule('max', array('grades.*'), 10); ``` However in case of validation failure i can't find a way to get...
If you do something like this:
I don't see a way to set the custom messages for rules set by: $rules = [ 'required' => 'foo', 'accepted' => 'bar', 'integer' => 'bar' ]; $v = new...