pontedilana/php-weasyprint
PHP 8.3+ wrapper around WeasyPrint (v60+) to generate PDFs from URLs or HTML. Snappy-inspired, drop-in style API with strict typing. Set the weasyprint binary, pass CLI options, stream to browser or write files.
Adopt if:
Look elsewhere if:
For Executives: "This package lets us generate professional PDFs from web content—like invoices, reports, or legal docs—without third-party APIs or expensive tools. It’s secure, cost-effective, and integrates seamlessly with our Laravel stack. For example, we could add a ‘Download PDF’ button to every order confirmation, reducing support calls and improving compliance. The upfront cost is minimal (WeasyPrint installation), and it future-proofs our PDF needs for years."
For Engineers: *"PhpWeasyPrint is a SnappyPDF drop-in replacement but uses WeasyPrint for superior CSS/HTML fidelity. Key advantages:
For Security Teams: *"This package addresses critical risks:
http/https URLs are fetched by default (configurable).How can I help you explore Laravel packages today?