定制 shalompeace/zomato-api-wrapper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shalompeace/zomato-api-wrapper

最新稳定版本:v1.0

Composer 安装命令:

composer require shalompeace/zomato-api-wrapper

包简介

PHP wrapper and library for Zomato API

README 文档

README

PHP wrapper for Zomato API

Requirements

  • PHP 5.5 or greater

Installation

Via Composer

$ 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' => '']);

统计信息

  • 总下载量: 956
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-30