PHP code example of greenterfin / report
1. Go to this page and download the library: Download greenterfin/report 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/ */
greenterfin / report example snippets
$invoice = new Invoice();
// $invoice->set...
$report = new HtmlReport();
$report->setTemplate('invoice.html.twig');
$html = $report->render($invoice, [
'system' => [
'logo' => $logo,
'hash' => 'qqnr2dN4p/HmaEA/CJuVGo7dv5g=',
],
'user' => [
'header' => 'Telf: <b>(056) 123375</b>',
'resolucion' => '212321',
]
]);
echo $html;