PHP RESTful API setup