Dompdf
PHP library that converts HTML and CSS to PDF documents.
dompdf.github.io/repositorydocs
Dompdf converts HTML and CSS into PDF inside a PHP application. The application installs it with Composer, as the README shows, and loads it as a dependency, so no separate server or process runs. The bundled R&OS CPDF class renders PDFs without an external PDF library; PDFLib is an optional backend that needs a PECL extension.
Worth knowing
The homepage lists the PHP extensions DOM and MBString as requirements. It says Dompdf does not tolerate poorly formed HTML well, suggests the built-in HTML5 parser or a validator, and states that a table row must fit on one page.
Identity
Rendering and deploy
- Runs as
- Per request3
- Install with
- composer require dompdf/dompdf3
Releases
Adoption
Sources
- 2026-10-19: links, Maintainer, Categories, Runtime
dompdf.github.io/ - 2026-10-19: links, Maintained by, Written in, License, License model, GitHub stars
api.github.com/repos/dompdf/dompdf - 2026-10-19: links, Install with, Runs as
github.com/dompdf/dompdf/blob/v3.1.6/README.md - 2026-10-19: Minimum runtime, Current major version
repo.packagist.org/p2/dompdf/dompdf.json - 2026-10-19: Last release
api.github.com/repos/dompdf/dompdf/releases/latest - 2026-10-19: Contributors
api.github.com/repos/dompdf/dompdf/contributors - 2026-10-19: Packagist downloads
packagist.org/packages/dompdf/dompdf.json - 2026-10-25: Dependent repositories, Dependent packages
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/dompdf%2Fdompdf - 2026-10-25: Packagist downloads a month
packagist.org/packages/dompdf/dompdf/stats.json