kylemilloy / edamam-php

Edamam API 的 PHP 库

1.0.0 2022-11-14 14:36 UTC

This package is auto-updated.

Last update: 2024-09-14 18:36:52 UTC


README

Software License Build Status StyleCI Total Downloads

Edama-PHP 库为 PHP 语言提供了访问 Edamam API 的途径。

安装

使用 composer 安装: composer require kylemilloy/edamam-php

使用方法

简单使用如下

\Edamam\Api\FoodDatabase\FoodDatabase::setApiCredentials('app_id', 'app_key');

$results = \Edamam\Api\FoodDatabase\FoodRequest::find(['ingredient' => 'pizza'])->results();

更复杂的用法请查看 FoodDatabase API 文档

待办事项

  • 添加对 Food Database API 的完全支持
  • 添加对 Nutrition Analysis API 的完全支持
  • 添加对 Recipe Search API 的完全支持