Better php PDF generation — with Puppeteer in Laradock

I needed my php app to generate PDFs. DOMPdf and Wkhtmltopdf seem to be the obvious choices, right? No. Dompdf doesn’t fully support CSS. Wkhtmltopdf is hopeless with flexbox. Then I stumbled upon this wonderful package developed by Google known as Puppeteer.

Photo by Danny Wage on Unsplash

What is Puppeteer?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store