Simple, dependency free, php validator class.