{"repo":"spatie/laravel-pdf","free":true,"listed":false,"github":"https://github.com/spatie/laravel-pdf","clone":"git clone https://github.com/spatie/laravel-pdf.git","description":"Create PDF files in Laravel apps","language":"PHP","stars":1039,"topics":["laravel","pdf","php"],"license":"MIT","category":"media-processing","readme_excerpt":"Create PDFs in Laravel apps This package provides a simple way to create PDFs in Laravel apps. It supports multiple drivers: Browsershot (Chromium), Gotenberg (Docker-based), Cloudflare Browser Run, WeasyPrint (Python-based), DOMPDF (pure PHP), and chrome-php/chrome (Chromium). You can use modern CSS features like grid and flexbox with the Chromium-based drivers, use WeasyPrint for excellent CSS Paged Media support, or choose DOMPDF for a zero-dependency setup. Here's a quick example: This will render the Blade view pdfs.invoice with the given data and save it as a PDF file. You can also return the PDF as a response from your controller: You can use also test your PDFs: Laravel Boost This package ships with a Laravel Boost skill. After installing the package, run php artisan boost:install to register the skill. This will help AI agents in your project generate correct PDF code. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Documentation All documentation is available on our documentation site. Testing For running the testsuite, you'll need to have Puppeteer installed. Pleaser refer to the Browsershot requirements here. Usually npm -g i puppeteer will do the","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}