# barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

Repository: https://github.com/barryvdh/laravel-dompdf
Canonical: https://ross.abutalabs.com/products/laravel-dompdf
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, pdf, hacktoberfest
Last push: 2026-07-09T07:15:08+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 91, release rhythm 75, longevity 100
- inputs: {"age_days": 4819, "days_push": 55, "days_rel": 169, "gap_med": 30, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7285, forks 977 (observed 2026-08-28T04:09:58.023966+00:00)

## What it is
A Laravel wrapper around the Dompdf HTML-to-PDF converter, exposing a facade and service provider for rendering Blade views or HTML strings as PDFs. It supports saving, streaming, and downloading PDFs with configurable paper size, orientation, and Dompdf options.

## Use cases
- generate pdf invoices from blade views in laravel
- convert html to pdf in a laravel app
- stream a pdf to the browser for download
- save rendered pdf files to disk from laravel
- generate printable reports from html templates
- create pdfs in lumen applications

## When to choose
- you build Laravel or Lumen apps and need PDF generation from HTML/Blade templates
- you want a simple facade API for download, stream, or save operations
- you need configurable paper size, orientation, and Dompdf options

## When to avoid
- you need pixel-perfect complex CSS layout that Dompdf cannot render
- your project is not PHP/Laravel-based
- you need very high-performance or headless-browser-grade PDF rendering

## Facets
- artifact type: library
- maturity: stable
- function: pdf, templating
- domain: web-development, pdf, backend
- platform: php
- tags: laravel, dompdf, html-to-pdf, wrapper, invoice-generation

## Member repositories
- barryvdh/laravel-dompdf (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:58.023966+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:38:52.564301+00:00, confidence not recorded.
  - readme: https://github.com/barryvdh/laravel-dompdf (fetched 2026-08-28T04:09:58.023966+00:00, sha 5b18261bd111)
- Data as of 2026-08-30T08:39:29.467469+00:00.
