2lenet / pdf-generator-bundle
Pdf generator
Package info
github.com/2lenet/PdfGeneratorBundle
Type:symfony-bundle
pkg:composer/2lenet/pdf-generator-bundle
Requires
- php: ^8.4
- alexanderpavlov/pdfmerger: ^1.0
- doctrine/orm: ^2.6 || ^3.0
- laminas/laminas-escaper: ^2.11
- laminas/laminas-stdlib: ^3.15
- phpoffice/phpword: ^0.18
- setasign/fpdf: 1.8.4
- setasign/fpdi: ^2.3.6
- symfony/dotenv: ^7.0 || ^8.0
- symfony/framework-bundle: ^7.0 || ^8.0
- symfony/http-client-contracts: ^v3.4.0
- symfony/http-foundation: ^7.0 || ^8.0
- symfony/process: ^7.0 || ^8.0
- symfony/property-access: ^7.0 || ^8.0
- symfony/property-info: ^7.0 || ^8.0
- symfony/routing: ^7.0 || ^8.0
- symfony/serializer: ^7.0 || ^8.0
- symfony/yaml: ^7.0 || ^8.0
- tecnickcom/tcpdf: ^6.3
- twig/twig: ^3.4.3
- vich/uploader-bundle: ^1.19 || ^2.0
Requires (Dev)
- 2lenet/crudit-bundle: ^1.20
- ergebnis/phpstan-rules: ^2.1
- phpstan/phpdoc-parser: ^1.0 || ^2.0
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-doctrine: ^2.0
- phpstan/phpstan-mockery: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^10.3
- slevomat/coding-standard: ^8.13
- squizlabs/php_codesniffer: ^3.7
- symfony/form: ^7.0 || ^8.0
Suggests
- ext-zip: Export and import of the templates (zip archive)
- 2lenet/crudit-bundle: Admin screen of the PDF templates, added automatically
- phpstan/phpdoc-parser: crudit_report data sources: item type of a list (@var list<Class>, iterable<Class>)
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 5.0.0
- 4.2.4
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.1
- 3.0.0
- 2.0.0
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2
- 1.1
- 1.0.2
- v1.0.1
- 1.0.0
- dev-feature/crudit-report
- dev-bug_escape
- dev-feature/sf8-compatibility
- dev-sf-7
- dev-saut-de-ligne
- dev-fix_default_null_properties-1
- dev-fixDeprecated
- dev-fixSymfonyInsightErrors
- dev-iBast-patch-1
- dev-editController
- dev-compatibilitySf6
- dev-fixFPDFversion
- dev-sf6Compatibility-1
- dev-sf6Compatibility
- dev-bugfix/avoid-duplicate-code
- dev-zend
- dev-compatible-php8
- dev-compatible
- dev-feature/allow-images-in-iterables
- dev-routeBalise
- dev-correctionBalise
- dev-balises
- dev-model_exception
- dev-signature_colour
- dev-complex_block
- dev-variablesAutomatiques
- dev-specialchar_template
This package is auto-updated.
Last update: 2026-10-13 13:26:01 UTC
README
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.