RESTful API for PHP example