psliwa/pdf-bundle
Symfony bundle for generating PDFs from HTML with wkhtmltopdf. It wraps the psliwa/php-pdf library, integrates with Twig templates, and exposes configurable PDF options, making it straightforward to render invoices, reports, and other documents in Symfony applications.
psliwa/pdf-bundle is a Symfony2 bundle integrating the PHPPdf library. It is not a Laravel package and does not drop into a Laravel service provider/container model. That makes it a poor candidate for a Laravel roadmap item and a candidate only for a legacy Symfony2 maintenance context.barryvdh/laravel-dompdf, spatie/browsershot, or a Gotenberg sidecar.Consider it only when all of the following are true:
Look elsewhere when:
barryvdh/laravel-dompdf for simple documents, spatie/browsershots/Browsershot for pixel-accurate HTML/CSS, or Gotenberg for a containerized, language-agnostic renderer.For executives: We evaluated psliwa/pdf-bundle as a PDF-generation option and recommend not adopting it for our Laravel product. It is a Symfony2-era integration of the PHPPdf library, not a Laravel package, and it shows effectively no ecosystem adoption — 118 GitHub stars and zero dependent projects. Adopting it would create a single-maintainer dependency with no security patching and no upgrade path to modern PHP. PDF generation is a solved commodity; we should standardize on a maintained HTML-to-PDF approach so engineering time goes to product differentiation rather than document-rendering plumbing. Cost of adoption is low in license terms (MIT) but high in total cost of ownership: migration, forking, and security review.
For engineering: Treat this as a reference for XML/CSS-style document templating, not a dependency. If we have a legacy Symfony2 service using it, contain it: freeze template changes, inventory templates, and migrate to HTML/CSS rendered via Browsershot or Gotenberg behind a queue. If we are starting fresh, standardize on one renderer per document class — Dompdf for simple, low-fidelity documents; headless Chrome for brand-accurate customer-facing PDFs — and wrap it behind an internal DocumentRenderer interface so the vendor choice remains reversible. Flag the PHP 8 compatibility risk and the absence of dependents as due-diligence findings in the architecture decision record.
How can I help you explore Laravel packages today?