# barryvdh/laravel-snappy

Laravel Snappy PDF

Repository: https://github.com/barryvdh/laravel-snappy
Canonical: https://ross.abutalabs.com/products/laravel-snappy
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-08-21T12:16:43+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 43, longevity 100
- inputs: {"age_days": 4641, "days_push": 12, "days_rel": 168, "gap_med": 386, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2753, forks 281 (observed 2026-08-28T04:07:18.113940+00:00)

## What it is
A Laravel service provider wrapping the KnpLabs Snappy library to generate PDFs and images from HTML via wkhtmltopdf/wkhtmltoimage binaries. It provides facades and configuration for PDF and image generation within Laravel applications.

## Use cases
- generate pdf from html in laravel
- convert blade templates to pdf invoices
- render html to image screenshots in php
- create downloadable pdf reports from web pages
- generate pdf documents with wkhtmltopdf in laravel

## When to choose
- you use Laravel and need HTML-to-PDF or HTML-to-image conversion
- you want a simple facade-based API over wkhtmltopdf
- your layouts rely on WebKit rendering of HTML/CSS

## When to avoid
- you need a pure-PHP PDF generator without external binaries
- wkhtmltopdf is deprecated in your environment or unavailable on your host
- you need modern CSS/JS rendering beyond WebKit's capabilities

## Facets
- artifact type: library
- maturity: active
- function: pdf, image-processing, templating, plugin-system
- domain: web-development, pdf, backend
- platform: php, cli
- tags: laravel, wkhtmltopdf, snappy, pdf-generation, html-to-pdf, facade, service-provider, web-server

## Member repositories
- barryvdh/laravel-snappy (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:18.113940+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-30T08:18:53.609705+00:00, confidence not recorded.
  - readme: https://github.com/barryvdh/laravel-snappy (fetched 2026-08-28T04:07:18.113940+00:00, sha 1b7287956c83)
- Data as of 2026-08-30T08:39:29.467469+00:00.
