cognetif/ /poka-reporting
v0.2.0
2020-04-20 10:31 UTC
Requires
- php: ^7.2
- phpoffice/phpspreadsheet: ^1.10
Requires (Dev)
- ext-fileinfo: *
- illuminate/support: ^6.10
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2020-04-20 15:35:55 UTC
README
此库允许您与 Poka API 交互。
已弃用
此库已弃用,开发将继续使用: cognetif-os/report-generator
注意
此库未经 Poka 审批、许可、委托或推荐。它由第三方:Cognetif.com 创建和维护。
安装
使用 composer 安装
$ compose require cognetif/poka-reporting
使用方法
- 创建或扩展
Cognetif\PokaReporting\Report
。 Report::setHeaders($headers = [])
函数用于设置报告头。Report::addDataLine($line = [])
函数用于向报告正文添加单行数据。Report::addDataSet($dataSet = [])
函数用于将整个数据集添加到正文。Report::makeCsv()
或Report::makeHtml()
或Report::makeExcel()
函数用于控制输出的类型。Report::generate()
用于构建并返回报告。Report::clear()
用于从报告中清除正文数据集。标题保持不变。Report::setMaxMbMemory(int $mb = 5)
用于设置生成 CSV 报告时使用的最大兆字节数(默认:5MB)。
许可证
此库受 MIT 许可证的版权保护。请阅读 许可证 条款。
问题 / 贡献
欢迎并鼓励贡献。此库是开源的,但由 Cognetif.com 维护。请随时在: https://gitlab.com/cognetif-os/poka-api-client 打开问题。