2017 © Pedro Peláez
 

library zomato-api-wrapper

PHP wrapper and library for Zomato API

image

shalompeace/zomato-api-wrapper

PHP wrapper and library for Zomato API

  • Monday, June 20, 2016
  • by jerusalemshalom23
  • Repository
  • 2 Watchers
  • 2 Stars
  • 399 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 38 % Grown

The README.md

zomato-api-wrapper

PHP wrapper for Zomato API, (*1)

Requirements

  • PHP 5.5 or greater

Installation

Via Composer, (*2)

$ composer require shalompeace/zomato-api-wrapper

Usage

<?php 
    // Require composer autoloader
    require_once 'vendor/autoload.php';

    // Initialize Zomato API
    $zomato = new Zomato\Api\Zomato('Enter API key');

    // Get list of Categories
    $categories = $zomato->categories();

    // Get city details
    $cities = $zomato->cities(['q' => 'City name']);

    // Get Zomato collections in a city
    $collections = $zomato->collections(['city_id' => 63]);

    // Get list of all cuisines in a city
    $cuisines = $zomato->cuisines(['city_id' => 63]);

    // Get list of restaurant types in a city
    $establishments = $zomato->establishments(['city_id' => 63]);

    // Get location details based on coordinates
    $geocode = $zomato->geocode(['lat' => '', 'lon' => '']);

    // Get Zomato location details
    $location_details = $zomato->location_details(['entity_id' => '', 'entity_type' => '']);

    // Search for locations
    $locations = $zomato->locations(['query' => '']);

    // Get daily menu of a restaurant
    $dailymenu = $zomato->dailymenu(['res_id' => '']);

    // Get restaurant details
    $restaurant = $zomato->restaurant(['res_id' => '']);

    // Get restaurant reviews
    $reviews = $zomato->reviews(['res_id' => '']);

    // Search for restaurant
    $result = $zomato->search(['q' => '']);

The Versions

20/06 2016

dev-master

9999999-dev https://github.com/ShalomPeace/zomato-api-wrapper

PHP wrapper and library for Zomato API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Shalom Jerusalem

api php library wrapper zomato

20/06 2016

v1.0

1.0.0.0 https://github.com/ShalomPeace/zomato-api-wrapper

PHP wrapper and library for Zomato API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Shalom Jerusalem

api php library wrapper zomato