How to Create Web Service in PHP
There are two types of web service which are used, SOAP and REST.
SOAP is Simple Object Access Protocol. These webservices are XML-based and communicate over HTTP protocol. These are platform independent webservice, so the programmer need not have to worry about the programming language.
RESTful (Representation State Transfer) webservices are easy to manage and highly scalable web services. These are also platform independent webservices but it supports various data formats like text, json, xml, html.
Today we are going to create simple RESTful webservice in PHP to create new user and get existing user details.
We will be using WAMP server for our developments.