Implemented simple REST API in PhP