FindSoftware

mPDF

PHP library that generates PDF files from UTF-8 encoded HTML.

mPDF is a PHP library that generates PDF files from UTF-8 encoded HTML. It runs inside PHP and needs the mbstring and gd extensions loaded. The project says it is based on FPDF and HTML2FPDF, and its manual lists support for right-to-left and CJK languages. Ian Back wrote it.

Worth knowing

The README calls the software quite dated and points to headless Chrome for state of the art CSS support. Its default branch can differ from the last stable release. A few features need extra PHP extensions, including zlib, bcmath and xml.

Identity

Status
Active
Maintainer
Ian Back3
First release
20084

Rendering and deploy

Install with
composer require mpdf/mpdf3

Releases

Current major version
88
Last release
2026-03-118

Adoption

GitHub stars
4,7092
Packagist downloads
97,898,93910
Contributors
929
Dependent repositories
6,27911
Dependent packages
45511

Why these figures do not compare

Sources

  1. 2026-11-16: links
    mpdf.github.io/
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/mpdf/mpdf
  3. 2026-11-16: links, Maintainer, Categories, Runtime, Install with, License model
    github.com/mpdf/mpdf/blob/development/README.md
  4. 2026-11-16: First release
    mpdf.github.io/about-mpdf/changelog.html
  5. 2026-11-16: Minimum runtime, License
    github.com/mpdf/mpdf/blob/v8.3.1/composer.json
  6. 2026-11-16: License
    mpdf.github.io/about-mpdf/license.html
  7. 2026-11-16: Multilingual
    mpdf.github.io/about-mpdf/features.html
  8. 2026-11-16: Current major version, Last release
    repo.packagist.org/p2/mpdf/mpdf.json
  9. 2026-11-16: Contributors
    api.github.com/repos/mpdf/mpdf/contributors?per_page=1
  10. 2026-11-16: Packagist downloads
    packagist.org/packages/mpdf/mpdf.json
  11. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/packagist.org/packages/mpdf%2Fmpdf

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON