php validation based on YAML configuration files