{"id":15029068,"url":"https://github.com/daaarkling/php-zomato-client","last_synced_at":"2026-03-15T17:51:08.064Z","repository":{"id":56962481,"uuid":"156922371","full_name":"Daaarkling/php-zomato-client","owner":"Daaarkling","description":"Zomato api client written in PHP","archived":false,"fork":false,"pushed_at":"2018-12-17T19:09:59.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T00:51:14.969Z","etag":null,"topics":["api","api-client","php","php7","zomato","zomato-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Daaarkling.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-09T21:56:08.000Z","updated_at":"2018-12-17T19:09:03.000Z","dependencies_parsed_at":"2022-08-21T05:40:25.990Z","dependency_job_id":null,"html_url":"https://github.com/Daaarkling/php-zomato-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daaarkling%2Fphp-zomato-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daaarkling%2Fphp-zomato-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daaarkling%2Fphp-zomato-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daaarkling%2Fphp-zomato-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daaarkling","download_url":"https://codeload.github.com/Daaarkling/php-zomato-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243338612,"owners_count":20275538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","php","php7","zomato","zomato-api"],"created_at":"2024-09-24T20:09:40.885Z","updated_at":"2025-12-24T17:51:57.585Z","avatar_url":"https://github.com/Daaarkling.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Php Zomato Api Client\nZomato api client written in PHP. Supports [Zomato APIv2.1](https://developers.zomato.com/documentation).\n\nInstallation\n----------\nJust use composer.\n```sh\ncomposer require darkling/php-zomato-client\n```\n\nUsage\n----------\n```php\n// Create request\n$request = new RestaurantRequest(16506740); // restaurant ID\n// OR\n//$request = RestaurantRequest::createFromParameters(['res_id' =\u003e 16506740]);\n// Name of parameters must respect name of parameters in zomato api documentation\n\n// Create client\n// You can choose from three possible output options (JSON_STRING, JSON_ARRAY, JSON_STD_CLASS)\n$client = new ZomatoClient('userApiKey', ResponseOption::get(ResponseOption::JSON_STRING));\n\n// Send request and get response\n$response = $client-\u003esend($request);\n\n// Handle response\nif ($response-\u003eisOk()) {\n\tvar_dump($response-\u003egetData());\n} else {\n\tvar_dump($response-\u003egetStatusCode());\n\tvar_dump($response-\u003egetReasonPhrase());\n}\n```\n\nRequests\n----------\nList of available requests:\n* /categories Get list of Categories -\u003e *Not implemented*\n* /cities Get city details -\u003e *Not implemented*\n* /collections Get Zomato collections in a city -\u003e *Not implemented*\n* /cuisines Get list of all cuisines in a city -\u003e *Not implemented*\n* /establishments Get list of restaurant types in a city -\u003e *Not implemented*\n* /geocode Get location details based on coordinates -\u003e *Not implemented*\n* /location_details Get Zomato location details -\u003e *Not implemented*\n* /locations Search for locations -\u003e *Not implemented*\n* /dailymenu Get daily menu of a restaurant -\u003e **DailyMenuRequest**\n* /restaurant Get restaurant details -\u003e **RestaurantRequest**\n* /reviews Get restaurant reviews -\u003e **ReviewsRequest**\n* /search Search for restaurants -\u003e **SearchRequest**\n\nIf you need to use some of the request which is not currently implemented, you are welcome to send PR :-)\n\nNette\n----------\nIf you are looking for integration to [Nette Framework](https://nette.org/) just use this package [daaarkling/nette-zomato-client](https://github.com/Daaarkling/nette-zomato-client).\n\nLicence\n----------\nNew BSD License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaarkling%2Fphp-zomato-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaaarkling%2Fphp-zomato-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaarkling%2Fphp-zomato-client/lists"}