pontedilana/php-weasyprint
PHP wrapper for WeasyPrint (v60+) to generate PDFs from URLs or HTML. Snappy-like API with output streaming or file generation, supports WeasyPrint CLI options (encoding, media type, stylesheets, attachments) and timeouts.
dompdf.knplabs/snappy or abandoned barryvdh/laravel-snappy in Laravel ecosystems, ensuring compatibility with PHP 8.5+ and Symfony 8.0+.Adopt if:
knplabs/snappy).Look elsewhere if:
pdf-lib for interactive PDFs).For Executives: "This package lets us generate high-quality PDFs directly from our web content—no third-party APIs or client-side dependencies. It’s a drop-in replacement for outdated tools like Snappy, supports modern CSS (critical for our responsive designs), and integrates seamlessly with Laravel. For example, we can automate invoice generation, compliance reports, or user exports without adding latency or cost. It’s open-source, actively maintained, and reduces our reliance on proprietary solutions."
For Engineering: *"PhpWeasyPrint is a Snappy-compatible wrapper for WeasyPrint, offering:
Trade-offs:
Proposal:
Replace knplabs/snappy or dompdf with this for all new PDF generation needs. For existing projects, prioritize migration where CSS3 support or Snappy compatibility is needed. Pair with Laravel Queues for async generation (e.g., bulk reports)."*
How can I help you explore Laravel packages today?