eckinox/php-puppeteer
Generate PDFs in PHP using Puppeteer. Render from a URL or HTML string with a simple API and minimal dependencies. Includes setup guidance for installing Puppeteer/Chromium and basic examples for returning PDF output.
GeneratePdfJob) to handle high-throughput workloads without blocking requests.Browser objects across requests) to reduce memory overhead in microservices.For Executives: "This package lets us generate professional-grade PDFs—like invoices, reports, or marketing collateral—directly from our Laravel backend, ensuring consistent quality and brand compliance without relying on third-party APIs or client-side tools. By using Puppeteer (Google’s headless Chrome), we guarantee accurate rendering of dynamic content, such as JavaScript-heavy dashboards or real-time data. It’s a cost-effective, open-source solution (MIT license) that eliminates vendor lock-in, with minimal operational overhead. Ideal for scaling features like e-commerce receipts or SaaS exports while keeping development simple."
For Engineering: *"This is a PHP wrapper for Puppeteer, perfect for:
launchArgs (e.g., headless, cacheDir) for scalability; reuse instances via Laravel Horizon.For Design/Compliance Teams: *"This solution ensures pixel-perfect PDFs that match our web designs, including:
How can I help you explore Laravel packages today?