Small php rest service