tina4stack/tina4php-reports

Tina4 PHP Reporting Functionality

Maintainers

Package info

github.com/tina4stack/tina4php-reports

Language:Pascal

pkg:composer/tina4stack/tina4php-reports

Statistics

Installs: 2 159

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.6 2026-03-14 18:23 UTC

This package is auto-updated.

Last update: 2026-03-14 19:38:27 UTC


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

Code Infinity

Supporting open source communities • Innovate • Code • Empower