valitron icon indicating copy to clipboard operation
valitron copied to clipboard

Valitron is a simple, elegant, stand-alone validation library with NO dependencies

Results 58 valitron issues
Sort by recently updated
recently updated
newest added

$v = new Validator(['name' => "\xc2\xa0"]); $v->rule('required', 'name'); if($v->validate()) { echo "Yay! We're all good!"; } else { // Errors print_r($v->errors()); } output: Yay! We're all good!

bug

Recently I used your package in my project and it does not support the Persian language, therefore, I add the Persian language.

Adds `$checkBool` flag in the `requireWith` and `requireWithout` validators which increase the specificity check on the deterministic field(s) in order to correctly treat a value of (bool)false as "not set"....

In php 8.1 php functions will crash passing null instead of an string. For example: ``` $rules = [ 'required' => [ 'source', ], 'url' => [ 'source', ], ];...

I have been implementing these normal for the validations of a registration form where we depend on the minimum length of a specific string, For example: identification: "1000000001" This, when...

### **Fixing the language bug in the Valitron package** The automatic Composer installation of this package works without any problems, but when the package files are downloaded to the computer...

Hello, I want to validate the "field2" only if "field1" is present and if "field1" value is equal to "myvalue1". Indeed, "field1" is a radio button and can have three...