Hi, I am working on a VO library for form validation with common field types. Each data type implements the `Type` interface and they are injected with the field data. Upon failure, they throw an `InvalidArgumentException`. A validator for that type can be injected in the ctor itself, it will fallback to the default validator for that type otherwise.
https://github.com/2DSharp/Phypes
Now, I was thinking about password types. Different websites have different requirements for a valid password. So, I was thinking of having `an options[]` argument as the `isValid()` method in the validator c…
(see full text)