matchmaker
matchmaker copied to clipboard
Ultra-fresh PHP matching functions
On actual library version regex expression literals using commas was assuming as diferents arguments exploding by "," character but preg_match function only need a configuration argument, the pattern. With this...
If I have an array: ```php $array = [ "key1" => true, "key2" => false ]; ``` then can I check that array has only `key1` and nothing else? ```php...
Hi! I was looking for some library to validate complex arrays against predefined patterns. This library looks powerful but it lacks for more examples. I wonder if you could write...
Trying to create validation for a phone field Works: `phone: ":regexp(/^\+\d+$/)"` Fails: `phone: ":regexp(/^\+\d{10,15}$/)"` In addition, although this one is of less significance, this also fails: `phone: ":regexp(/^\+(\d+)$/)"` In failed...
How do I use the qualifiers? I would like to configure one key as optional. So far tried: ``` "optional?" => ":string" "?optional" => ":string" "optional" => "?string" ``` and...