PHP code example of inteleon / export-builder
1. Go to this page and download the library: Download inteleon/export-builder 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/ */
inteleon / export-builder example snippets
php
(new ReportBuilder())
->title('Random data')
->text('Period: Big bang - Future')
->addColumn('first', 47.5, null)
->addColumn('second', 47.5, null)
->addColumn('third', 47.5, '5678', true)
->addColumn('fourth', 47.5, '1234', false)
->numAmountColumns(2)
->data($data)
->addAccountingOrder(true)
->filename('report_test')
->exporter('pdf')
->render();