tina4stack / tina4php-reports
Tina4 PHP Reporting Functionality
Package info
github.com/tina4stack/tina4php-reports
Language:Pascal
pkg:composer/tina4stack/tina4php-reports
v2.0.6
2026-03-14 18:23 UTC
Requires
- php: >=8.1
- ext-json: *
- mpdf/mpdf: ^8.1
- tina4stack/tina4php-core: ^2.0
Requires (Dev)
- overtrue/phplint: ^2.0
- phpmetrics/phpmetrics: ^2.8
- phpunit/phpunit: ^9
- tina4stack/tina4php-database: ^2.0
- tina4stack/tina4php-debug: ^2.0
- tina4stack/tina4php-firebird: ^2.0
README
Report engine for the Tina4 PHP framework, generating reports as HTML, CSV, or PDF (via mPDF).
Installation
composer require tina4stack/tina4php-reports
Requirements
- 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 landscape
Testing
composer test
License
MIT - see LICENSE
Our Sponsors
Sponsored with 🩵 by Code Infinity
Supporting open source communities • Innovate • Code • Empower