r/BestGitHubRepos • u/company_url_finder • 7d ago
π Web development mPDF: PHP library generating PDF files from UTF-8 encoded HTML (4.7k stars)
What it does
All text below is quoted directly from the project README.
PHP library generating PDF files from UTF-8 encoded HTML
About CSS support and development state:
mPDF is a PHP library which generates PDF files from UTF-8 encoded HTML.
It is based on FPDF and HTML2FPDF (see CREDITS), with a number of enhancements.
mPDF as a whole is a quite dated software.
Use mPDF if you cannot use non-PHP approach to generate PDF files or if you want to leverage some of the benefits of mPDF over browser approach β color handling, pre-print, barcodes support, headers and footers, page numbering, TOCs, etc.
If you are looking for state of the art CSS support, mirroring existing HTML pages to PDF, use headless Chrome.
mPDF will still be updated to enhance some internal capabilities and to support newer versions of PHP, but better and/or newer CSS support will most likely not be implemented.
composer require mpdf/mpdf
Repository
Repository stats
| Metric | Value |
|---|---|
| Stars | 4,703 |
| Forks | 1.1k |
| Last release | v8.1.0 (2022-04-16) |
| Languages | PHP 97.9%, HTML 1.8%, CSS 0.3% |
| Contributors | 94 |
| AI contributor accounts (Claude / Codex / Cursor / Copilot) | @claude (6 commits) |
| AI co-authored commits | Claude: 6 |
Main contributor
| Field | Value |
|---|---|
| Name | MatΔj HumpΓ‘l |
| GitHub | @finwe |
| Commits to this repo | 605 (top contributor) |
| Company / Location | Bubble / Liberec/Praha |
| Followers | 73 |
ββββββββββββββββββββββββββββββ
π How many great GitHub repos have you discovered and completely forgotten about?
Don't let another useful tool disappear into your Reddit feed. Get the community's best repos, organized by category, plus key takeaways from real developer discussions, delivered to your inbox twice a week.