/laravel-zomato

An API wrapper for Zomato API

Primary LanguagePHPMIT LicenseMIT

laravel-zomato

An API Wrapper for Zomato.

Prerequisites

  • Register an account to get an API Key

Installation

Type in your terminal

$ composer require einnar82/laravel-zomato

Add the service provider in your config => app.php

RannieOllit\Zomato\ZomatoServiceProvider::class,

and the Facade

'Zomato' => RannieOllit\Zomato\Facades\Zomato::class

Publish the zomato.php file via

$ php artisan vendor:publish 

and select

 RannieOllit\Zomato\ZomatoServiceProvider

Then, you can use the Zomato Facade;

List of methods in laravel-zomato

method information
getCategories Get list of Categories
getCityDetails(array $params) Get city details
getCityCollections(array $params) Get Zomato collections in a city
getCityCuisines(array $params) Get list of all cuisines in a city
getCityRestaurantTypes(array $params) Get list of restaurant types in a city
getRestaurantCoordinates(array $params) Get location details based on coordinates
getLocationDetails(array $params) Get Zomato location details
searchLocations(array $params) Search for locations
getDailyMenu(array $params) Get daily menu of a restaurant
getRestaurantDetails(array $params) Get restaurant details
getRestaurantReviews(array $params) Get restaurant reviews
searchForRestaurants(array $params) Search for restaurants

You may check the Zomato documentation for details.