elephpant/taco
Composer 安装命令:
composer require elephpant/taco
包简介
Brazilian Table of Food Composition (TACO) API (v0.1.0)
README 文档
README
With TACO it is possible to obtain nutritional data from a wide collection of foods through the API of the same name. Its use is very simple.
Com o TACO é possível obter dados nutricionais de uma vasta coleção de alimentos através da API de mesmo nome. Seu uso é muito simples.
NOTE: This component consumes the TACO API (Brazilian Food Composition Table) (https://taco-food-api.herokuapp.com)
NOTA: Este componente consome a API TACO (Tabela Brasileira de Composição de Alimentos) (https://taco-food-api.herokuapp.com)
Highlights
- Extremaly Easy
- Supports several Currencies
- Flexible
- Implements PSR7 (Message Interface)
- Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)
Installation
taco is available via Composer:
"elephpant/taco": "1.0.*"
or run
composer require elephpant/taco
Documentation
For details on how to use, see a sample folder in the component directory. In it you will have an example of use for each class. It works like this:
Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso para cada classe. Ele funciona assim:
Methods
<?php require __DIR__ . "/vendor/autoload.php"; use ElePHPant\Taco; $taco = new Taco(); /* List of all Categories of Food */ $taco->categories(); /* Only one Category - Insert in the ID of the Category that you want bring */ $category = $taco->category(1); /* Foods From Category - Insert in the the ID of the Category then see all foods */ $foodFromCategory = $taco->foodFromCategory(1); /* Only One Food - Insert in the param the ID of the Food that you want bring */ $food = $taco->food(2); /* Provide the timeout to set it (in seconds) */ $timeout = $taco->setTimeout(3)
Thanks TACO-Food-API for yours simple and intuitives APIs and Documentation
Contributing
Please see CONTRIBUTING for details.
Support
Security: If you discover any security related issues, please email sergiodanilojr@hotmail.com instead of using the issue tracker.
Se você descobrir algum problema relacionado à segurança, envie um e-mail para sergiodanilojr@hotmail.com em vez de usar o rastreador de problemas.
Thank you
Credits
- Sérgio Danilo Jr. (Developer)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
elephpant/taco 适用场景与选型建议
elephpant/taco 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「elephant」 「food」 「nutrition」 「taco」 「ElePHPant」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 elephpant/taco 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 elephpant/taco 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 elephpant/taco 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Emojis jQuery plugin
Breadcrumbs in an uncomplicated way. This component facilitates the way to create breadcrumbs for your website, to favor a more accessible navigation. It was designed to work very well with the Bootstrap Framework. Besides being very easy to use, it has very interesting possibilities, such as adding
Add recipes to WordPress.
Facade for USDA FoodData Central API
Trigger is the absurdly easy way to communicate with the user of your application through highly customizable messages
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-05