PHP implementation of the REST architecture