Switched services config to php