cognetif / poka-reporting
                            This package is abandoned and no longer maintained.
                                                                                                The author suggests using the cognetif/report-generator package instead.
                                                                                    
                                        
                    
                    Poka Reporting - Generate Excel, CSV, HTML Reports
    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
This library allows you to interact with the Poka API.
DEPRECATED
This library has been deprecated and development will continue with: cognetif-os/report-generator
Notice
This library has not been approved, licensed, commissioned or endorsed by Poka. It has been created and is maintained by a 3rd party: Cognetif.com
Installation
Installation with composer:
$ compose require cognetif/poka-reporting
Usage
- Create or extend theCognetif\PokaReporting\Report.
- Report::setHeaders($headers = [])function used to set the report headers.
- Report::addDataLine($line = [])function used to add a single line of data to the report body.
- Report::addDataSet($dataSet = [])function used to add the entire data set to the body.
- Report::makeCsv()or- Report::makeHtml()or- Report::makeExcel()functions used to control what type to output.
- Report::generate()to build and return the report.
- Report::clear()to clear the body dataset from the report. Headers are maintained.
- Report::setMaxMbMemory(int $mb = 5)to set the max number of megabytes used to generate a CSV report (Default: 5MB).
License
This library is protected under the MIT license. Please read the terms of the License.
Issues / Contributing
Contributions are welcome and encouraged. This library is open source but maintained by Cognetif.com. Please feel free to open an issue at: https://gitlab.com/cognetif-os/poka-api-client