validation
validation copied to clipboard
Checking object parameters
Hi, how would i check object params? There are only examples for arrays.
The lib works only with arrays. Use reflections to convert your object into an array or implement a toArray() method that does that for you in your object. The library seems to be no longer maintained, otherwise I would have suggested to create a PR to add object support.
Check this fork, if its not already supporting objects I'm sure he will accept a proper PR. https://github.com/somnambulist-tech/validation