1. Go to this page and download the library: Download uga/twig2pdf-bundle 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/ */
uga / twig2pdf-bundle example snippets
new UGA\Html2PDFBundle\UGAHtml2PDFBundle() ,
protected $pdf2html ;
public function __construct(
\UGA\Html2PDFBundle\Factory\Html2pdfFactory $pdf2html
)
{
$this->pdf2html = $pdf2html ;
}