Nikhil Joshi

Sharing Knowledge !

Creating API for mobile is super easy now in PHP — June 11, 2015

Creating API for mobile is super easy now in PHP

Hi All,

Today I am going to demonstrate that creating an API (with no authentication) is very easy using PHP.

You require

1. PHP web hosting with MySQL support.
2. Very basic knowledge of PHP.

In this example I have used both JSON and XML response types. Default return type is JSON, if you want XML response add type parameter to your URl e.g.(api.php?type=xml)

To start with creating API you first will need a MySQL database. In case of our example we will be creating a databsae

Continue reading

Merry Christmas — December 25, 2014
%d bloggers like this: