Wrapper for the Zomato API, written in PHP and retrieving JSON responses.
Include the needed wrapper class.
require './classes/ZomatoApi.php';
Instantiate wrapper choosing XML or JSON data formats.
$zomatoXmlApi = new ZomatoApi('xml');
$zomatoJsonApi= new ZomatoApi('json');
Invoke the desired method of the Zomato API and get the HTTP response.
$jsonResponse = $zomatoJsonApi->getCitiesRequest('Lisbon', 0.0, 0.0, '', 0);