A lightweight PHP RESTful API class