Search by

2lenet / pdf-generator-bundle

sebheitzmann

Pdf generator

Package info

github.com/2lenet/PdfGeneratorBundle

Type:symfony-bundle

pkg:composer/2lenet/pdf-generator-bundle

Statistics

Installs: 21 523

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

5.0.0 2026-10-13 13:24 UTC

README

PHPStan status PHPUnit status PHPCS status

Generate PDF documents from templates stored in your application, and manage those templates.

A template (PdfModel) has a code, a type and a resource. Your code asks for a document by code and gives the data; the bundle renders it with the generator of the template type:

Type Template Rendering
word_to_pdf .docx file with ${variables} PhpWord, then unoserver
tcpdf PHP class (TCPDF + FPDI) TCPDF
crudit_report Crudit Report template (.template.json), edited in its visual designer crudit command (template → Typst → PDF)
return $pdfGenerator->generateResponse('INVOICE', [['invoice' => $invoice]]);

With Crudit Bundle, the bundle also provides the templates admin screen: upload, Crudit Report designer, preview, copy of the templates from one platform to another.

Installation

composer require 2lenet/pdf-generator-bundle

Afterwards, visit the documentation to set up and use PdfGeneratorBundle.

Upgrading? See the upgrade guide.

Licence

PdfGeneratorBundle is released under the terms of the MIT License.