salvatoredeploy/cafeapi
Composer 安装命令:
composer require salvatoredeploy/cafeapi
包简介
Biblioteca API para integração com o webservice do SaaS FSPHP
README 文档
README
CaféApi Library is a small set of classes developed in ProjetosDeploy's Full Stack PHP Developer training for integration into the webservice of a SaaS platform developed in the course..
CaféApi Library é um pequeno conjunto de classes desenvolvidas para integração ao webservice e consumo da api CaféApi de uma plataforma SaaS desenvolvida para controle financeiro.
Você pode saber mais clicando aqui.
Highlights
- Simple installation (Instalação simples)
- Abstraction of all API methods (Abstração de todos os métodos da API)
- Easy authentication with login and password (Fácil autenticação com login e senha)
- Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)
Installation
Uploader is available via Composer:
"salvatoredeploy/cafeapi": "^1.0"
or run
composer require salvatoreDeploy/cafeapi
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:
User endpoint:
<?php require __DIR__ . "/../vendor/autoload.php"; use salvatoreDeploy\CafeApi\Me; $me = new Me( "suaapi.url.com", "seu@email.com.br", "suasenha" ); //me $user = $me->me(); //update $user->update([ "first_name" => "Robson", "last_name" => "Leite", "genre" => "male", "datebirth" => "1980-01-02", "document" => "888888888" ]); //photo $user->photo($_FILES["photo"]); //test and result if ($user->error()) { $user->error(); //object } else { $user->response(); //object }
Invoices endpoint:
<?php require __DIR__ . "/../vendor/autoload.php"; use salvatoreDeploy\CafeApi\Invoices; $invoices = new Invoices( "suaapi.url.com", "seu@email.com.br", "suasenha" ); //index $index = $invoices->index(null); //index filter $index = $invoices->index([ "wallet_id" => 23, "type" => "fixed_income", "status" => "paid", "page" => 2 ]); //create $invoices->create([ "wallet_id" => 23, "category_id" => 3, "description" => "Pagamento Cartão", "type" => "expense", "value" => "25000.20", "due_at" => "2019-10-02", "repeat_when" => "single", "period" => "month", "enrollments" => "1", ]); //read $invoices->read(91); //update $invoiceId = 91; $invoices->update($invoiceId, [ "wallet_id" => 23, "category_id" => 3, "description" => "Pagamento Cartão", "value" => "25000.20", "due_day" => 25, "status" => "paid" ]); //delete $invoices->delete(91); //test and result if ($invoices->error()) { $invoices->error(); //object } else { $invoices->response(); //object }
Others
You also have classes for endpoints of portfolios and signatures, all the documentation of use with practical examples is available in the examples folder library. Please check there.
Você também conta com classes para os endpoints de carteiras e assinaturas, toda documentação de uso com exemplos práticos está disponível na pasta examples desta biblioteca. Por favor, consulte lá.
Contributing
Please see CONTRIBUTING for details.
Support
Security: If you discover any security related issues, please email meu@email.com.br instead of using the issue tracker.
Se você descobrir algum problema relacionado à segurança, envie um e-mail para meu@email.com.br em vez de usar o rastreador de problemas.
Thank you
Credits
- HENRIQUE J. ARAUJO (Developer)
- Projetos Deploy (Team)
- All Contributors (This Rock)
License
The MIT License (MIT). Please see License File for more information.
salvatoredeploy/cafeapi 适用场景与选型建议
salvatoredeploy/cafeapi 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 01 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「saas」 「full stack」 「upinside」 「FSPHP」 「Henrique J. Araujo」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 salvatoredeploy/cafeapi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 salvatoredeploy/cafeapi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 salvatoredeploy/cafeapi 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel Plans is a package for SaaS apps that need management over plans, features, subscriptions, events for plans or limited, countable features.
Asaas.com PHP API v3 Wrapper
Adaptaçao Asaas.com PHP API Wrapper para PHP 5.6
Debug2 is a function developed to debug PHP code of form easy, simple, pretty print, fast and safe.
MvcCore - Extension - Router - Media - extension to manage website media versions (full/tablet/mobile) for different templates/CSS/JS files rendering, optionally contained in URL address in the beginning.
Allow Fullscreen TinyMCE video embed, lazy loading and other features
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-16