Pragmatic REST API Implementation on PHP