spatie/laravel-pdf
Create PDF files in Laravel apps observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 98
- Release rhythm 98
- Longevity 70
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 985
- days_rel: 16
- days_push: 16
- n_releases_24m: 26
Adoption not part of the score
1041 stars · 106 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Laravel package for generating PDF files from Blade views using a driver-based architecture. It supports multiple backends including Browsershot (Chromium), Gotenberg, Cloudflare Browser Run, WeasyPrint, DOMPDF, and chrome-php/chrome.
Use cases
- generate pdf invoices from blade views in laravel
- render html to pdf in a php laravel app
- download pdf response from a laravel controller
- generate pdfs with tailwind css styling
- test pdf responses in laravel feature tests
- generate pdfs in docker without installing chrome locally
When to choose
- you are building a Laravel 11+ / PHP 8.2+ app and need PDF generation from HTML views
- you want flexibility to swap PDF engines (Chromium, Gotenberg, WeasyPrint, DOMPDF) via config
- you need modern CSS (grid, flexbox, Tailwind) in generated PDFs via Chromium-based drivers
- you want built-in testing helpers like Pdf::fake() and assertion methods
When to avoid
- you are not using the Laravel framework
- you need to manipulate or parse existing PDFs rather than create them
- your host cannot run Node.js/Chrome, Docker, or Python and you need advanced CSS beyond DOMPDF's CSS 2.1 support
Facets
library · maturity active
pdf templating testing web-development pdf backend php cloud laravel-package pdf-generation blade-views driver-based spatie laravel docker
10 sources
- readme: https://github.com/spatie/laravel-pdf · fetched 2026-08-28 · 4acac4f17194
- homepage: https://spatie.be/docs/laravel-pdf · fetched 2026-08-29 · ccf3e0049203
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
- site_page: https://spatie.be/docs/laravel-pdf/v2 · fetched 2026-08-29 · ccf3e0049203
- site_page: https://spatie.be/docs/laravel-pdf/v1 · fetched 2026-08-29 · b6a65bfa5349
- site_page: https://spatie.be/docs/laravel-pdf/v2/support-us · fetched 2026-08-29 · 6fa25210e4bf
- site_page: https://spatie.be/docs/laravel-pdf/v2/requirements · fetched 2026-08-29 · 779e75d49a57
- site_page: https://spatie.be/docs/laravel-pdf/v2/installation-setup · fetched 2026-08-29 · 1e3cc19d7d28
- site_page: https://spatie.be/docs/laravel-pdf/v2/questions-issues · fetched 2026-08-29 · 9a25def22c2e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/laravel-pdf | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="spatie/laravel-pdf")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem