KnpLabs/KnpSnappyBundle
Easily create PDF and images in Symfony by converting html using webkit
Wraps the Snappy PHP library to expose `knp_snappy.pdf` and `knp_snappy.image` services, enabling direct HTML-to-document conversion from Twig templates or URLs with configurable wkhtmltopdf binaries and process timeouts. Supports batch PDF generation from multiple URLs and includes response classes (PdfResponse, JpegResponse) for streamlined controller integration. Note that ES6 JavaScript compatibility is limited due to wkhtmltopdf's webkit engine constraints.
1,245 stars.
Stars
1,245
Forks
143
Language
PHP
License
MIT
Category
Last pushed
Jan 07, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/KnpLabs/KnpSnappyBundle"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related tools
elegantapp/pwa-asset-generator
Automates PWA asset generation and image declaration. Automatically generates icon and splash...
vercel/satori
Enlightened library to convert HTML and CSS to SVG
KnpLabs/snappy
PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper...
kyranet/canvas-constructor
An ES6 utility for canvas with built-in functions and chained methods.
ScientaNL/pdf-extractor
Node.js module for rendering pdf pages to images, svgs, html files, text files and json metadata