Today I am going to demonstrate that creating an API (with no authentication) is very easy using PHP.
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