Catalog · How the catalog works
tina4php-reports
The reporting engine for tina4php
- ★ 1 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
tina4php-reports
Report engine for the Tina4 PHP framework, generating reports as HTML, CSV, or PDF (via mPDF).
Installation
composer require tina4stack/tina4php-reportsRequirements
- PHP >= 8.1
- ext-json
- mpdf/mpdf ^8.1
- tina4stack/tina4php-core ^2.0
Usage
Generating an HTML Report
use Tina4\Report;
$report = new Report();
// ... configure report data and layout
echo $report->asHTML();Exporting as CSV
$report = new Report();
// ... configure report data
$csv = $report->asCSV("output.csv");Exporting as PDF
$report = new Report();
// ... configure report data
$report->asPDF("report.pdf", "P"); // "P" for portrait, "L" for landscapeTesting
composer testLicense
MIT - see LICENSE
Our Sponsors
Sponsored with 🩵 by Code Infinity
Supporting open source communities • Innovate • Code • Empower


