KnpLabs/snappy
PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 95
- Release rhythm 83
- Longevity 100
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: 74
- age_days: 5922
- days_rel: 35
- days_push: 35
- n_releases_24m: 6
Adoption not part of the score
4476 stars · 437 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Snappy is a PHP library that wraps the wkhtmltopdf and wkhtmltoimage binaries to generate PDFs, snapshots, or thumbnails from URLs or HTML pages. It provides a simple object-oriented API and has framework integrations for Symfony, Laravel, and Zend Framework.
Use cases
- generate a pdf from a url in php
- convert html page to pdf
- create thumbnails or screenshots of web pages
- merge multiple urls into a single pdf
- render invoices as pdf from html templates
- snapshot a webpage as an image
When to choose
- you need server-side PDF or image generation from HTML in a PHP application
- you can install and control the wkhtmltopdf binary on your server
- you want a thin, well-maintained wrapper with framework bundles available
When to avoid
- you process untrusted HTML or JavaScript, since wkhtmltopdf's local file access can be a security risk
- you need modern CSS support or a pure-PHP solution without external binaries
- you are not using PHP or cannot install system binaries
Facets
library · maturity stable
pdf image-processing developer-tools pdf web-development files php windows cli wkhtmltopdf html-to-pdf pdf-generation html-to-image thumbnail-generation wrapper linux macos
2 sources
- readme: https://github.com/KnpLabs/snappy · fetched 2026-08-28 · 40f6508af6c2
- homepage: https://knplabs.com · fetched 2026-08-29 · 3e099e7188ae
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| KnpLabs/snappy | main | 92 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem