lunbor/openplatform
Composer 安装命令:
composer require lunbor/openplatform
包简介
README 文档
README
1.使用composer(推荐)
composer config secure-http false && composer require lunbor/openplatform
use Gd\Sdk; require __DIR__ . "/../autoload.php"; $obj = new Sdk("testappkey111", "请更正为自己的appsecret", "test", "1.0.0"); $str = <<<str { "buyer_title": "sdfsdfsdf", "invoice_type_code":"032", "title_type": 1, "order_id":"13332311x1asdfcsdcc", "buyer_taxpayer_num": "123456789406426", "buyer_address": "广东 深圳 南山", "buyer_bank_name": "中国工商银行", "buyer_bank_account": "621281240200099900000", "buyer_phone": "0755—26951098", "buyer_email": "Calvin.chen@gaopeng.com", "user_openid": "201708022e87777ggg74", "channel": "GP110001", "machine_no":"0", "seller_taxpayer_num":"111112222233333", "callback_url":"http://test.feehi.com/sign/mock/invoice-callback.php", "tax_amount":864, "amount_has_tax":9508, "amount_without_tax":8644, "drawer":"ddd", "items": [ { "name": "商品1", "tax_rate": 100, "models": "XYZ", "unit": "个", "total_price": 8644, "price":"17.288", "tax_amount":864, "total": "5", "include_tax_flag":"1", "tax_code": "1020202000000000000", "discount":0, "tax_type":"1", "preferential_policy_flag":"0" } ] } str; $post = json_decode($str, true); $result = $obj->httpRequest("/invoice/blue", $post); var_dump($result); print_r($obj->getLog());
2.手动加载
下载源码到目录,假设放置在/path/to/golden目录中
use Gd\Sdk; require "/path/to/golden/autoload.php"; $obj = new Sdk("testappkey111", "请更正为自己的appsecret", "test", "1.0.0");
运行example
composer run-script example
lunbor/openplatform 适用场景与选型建议
lunbor/openplatform 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 08 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 lunbor/openplatform 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lunbor/openplatform 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-08-03