Simple php service to create a restful API system