Posts

Showing posts from August, 2017

PHP RESTful Web Service

Image
http://phppot.com/php/php-restful-web-service/ Representational State Transfer (REST) is an architecture style. Web services that follow the RESTful principles are RESTful services. In RESTful services, URIs are used to access the resources. Data and functions are called resources in the RESTful glossary. So eventually data and function are what we will access via services. In this RESTful web services tutorial, I will show you how to create a RESTful web service. I will not be using any framework for this, just plain PHP. Most of the times I do prefer to write custom code  without depending on frameworks , this approach has its own advantages. On the Internet, I have seen web services tutorials and most of the times they all turn out to be error-prone or incomplete. I tested those RESTful services using a REST client and mostly they fail. view demo Objectives of this RESTful Web Service Example Build a RESTful Webservice. With plain PHP, without dependency on any fr...