mikehaertl/phpwkhtmltopdf
A slim PHP wrapper around wkhtmltopdf with an easy to use and clean OOP interface observed · 2026-08-28
Health v2 · maintenance only
53/100
- Activity 68
- Release rhythm 8
- 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: n/a
- age_days: 5243
- days_rel: n/a
- days_push: 193
- n_releases_24m: 0
Adoption not part of the score
1608 stars · 233 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A slim PHP wrapper around the wkhtmltopdf (and optionally wkhtmltoimage) command-line tools, exposing a clean OOP interface for creating PDFs and images from HTML files, strings, or URLs. It supports multi-page documents, cover pages, and tables of contents, and can save, send, or return the generated output.
Use cases
- generate pdf from html in php
- convert html string to pdf
- render a url as a pdf report
- create multi-page pdf with cover and table of contents
- convert html to image with wkhtmltoimage
- stream generated pdf to browser for download
When to choose
- you are a PHP developer needing HTML-to-PDF conversion
- you already have wkhtmltopdf installed and want a clean OOP API around it
- you need multi-page PDFs with covers and TOCs
- you want to save, send, or stringify PDF output easily
When to avoid
- you cannot install the wkhtmltopdf binary on your system
- you need pure-PHP PDF generation without external binaries
- you need a maintained renderer for modern CSS/JS, since wkhtmltopdf is no longer actively developed
- you are not working in PHP
Facets
library · maturity stable
pdf image-processing cli pdf web-development developer-tools php cross-platform cli wkhtmltopdf html-to-pdf pdf-generation wrapper oop-interface
1 source
- readme: https://github.com/mikehaertl/phpwkhtmltopdf · fetched 2026-08-28 · 7a47dbb4df91
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mikehaertl/phpwkhtmltopdf | main | 53 |
For agents
markdown · JSON · MCP: product_card(name="mikehaertl/phpwkhtmltopdf")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem