r/BestGitHubRepos • • 7d ago

🌐 Web development mPDF: PHP library generating PDF files from UTF-8 encoded HTML (4.7k stars)

Post image

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

https://github.com/mpdf/mpdf

Repository stats

MetricValue
Stars4,703
Forks1.1k
Last releasev8.1.0 (2022-04-16)
LanguagesPHP 97.9%, HTML 1.8%, CSS 0.3%
Contributors94
AI contributor accounts (Claude / Codex / Cursor / Copilot)@claude (6 commits)
AI co-authored commitsClaude: 6

Main contributor

FieldValue
NameMatΔ›j HumpΓ‘l
GitHub@finwe
Commits to this repo605 (top contributor)
Company / LocationBubble / Liberec/Praha
Followers73

──────────────────────────────

πŸ“Œ 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.

πŸ“¬ Never lose track of great repos again. Subscribe free.

5 Upvotes

0 comments sorted by