Skip to content

API reference / Quittio \ Core \ Templates

TemplateEngine

interface in quittio/core

Quittio\Core\Templates\TemplateEngine · Source

Turns the view model into HTML for the PDF renderer (Blade, plain PHP, Twig …).

Methods#

MethodDescription
->render()

render()#

public function render(
    string $template,
    InvoiceViewModel $invoice,
    array<string, mixed> $data = [],
): string
ParameterTypeDescription
$templatestring
$invoiceInvoiceViewModel
$dataarray<string, mixed> = []additional variables
Returns
string

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.