kylemilloy / edamam-php
Edamam API 的 PHP 库
1.0.0
2022-11-14 14:36 UTC
Requires
- guzzlehttp/guzzle: ^7.0
- tightenco/collect: ^9.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- phpunit/phpunit: ^7.1.5
README
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 的完全支持