PHP code example of tina4stack / tina4php-reports

1. Go to this page and download the library: Download tina4stack/tina4php-reports library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tina4stack / tina4php-reports example snippets


use Tina4\Report;

$report = new Report();
// ... configure report data and layout
echo $report->asHTML();

$report = new Report();
// ... configure report data
$csv = $report->asCSV("output.csv");

$report = new Report();
// ... configure report data
$report->asPDF("report.pdf", "P"); // "P" for portrait, "L" for landscape