PHPackages                             rdmumayan/html2pdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. rdmumayan/html2pdf

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

rdmumayan/html2pdf
==================

Html2Pdf is a HTML to PDF converter written in PHP5 (it uses TCPDF). OFFICIAL PACKAGE

0.0.0(7y ago)02291OSL-3.0PHPPHP ^5.4 || ^7.0

Since Oct 26Pushed 7y agoCompare

[ Source](https://github.com/rdmumayan/html2pdf)[ Packagist](https://packagist.org/packages/rdmumayan/html2pdf)[ Docs](http://html2pdf.fr/)[ RSS](/packages/rdmumayan-html2pdf/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (3)Used By (1)

Html2Pdf
========

[](#html2pdf)

Html2Pdf is a HTML to PDF converter written in PHP, and compatible with PHP **5.4** to **7.2**.

It allows the conversion of valid HTML in PDF format, to generate documents like invoices, documentation, ...

You have to write a code of HTML for Html2Pdf, and not try to convert directly an already existing html page.

Specific tags have been implemented, to adapt the html standard to a PDF usage.

You must use Composer to install this library.

It uses TCPDF for the PDF part.

Requirements
------------

[](#requirements)

Html2Pdf works with PHP &gt;5.4 and Composer.

You will also need at least the following php extensions:

- gd
- mbstring

Documentation
-------------

[](#documentation)

You will find the install documentation [here](./doc/install.md).

You will find all the documentation [here](./doc/README.md).

You will find lots of examples [here](./examples/).

Donate
------

[](#donate)

You can support this project by making a [donation](http://html2pdf.fr/en/donate).

Change log
----------

[](#change-log)

See the [./CHANGELOG.md](./CHANGELOG.md) file.

Help &amp; Support
------------------

[](#help--support)

For questions and bug reports, please use the GitHub issues page.

License
-------

[](#license)

This program is distributed under the OSL License. For more information see the [./LICENSE.md](./LICENSE.md) file.

Copyright 2008-2018 by Laurent Minguet

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2621d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cef23802f6c0169c3615e8435719b8c5f7cd1d02d3a97dccc1ea16f980f266fc?d=identicon)[rdmumayan](/maintainers/rdmumayan)

---

Top Contributors

[![spipu](https://avatars.githubusercontent.com/u/10595905?v=4)](https://github.com/spipu "spipu (233 commits)")[![juchi](https://avatars.githubusercontent.com/u/3333098?v=4)](https://github.com/juchi "juchi (50 commits)")[![fagundes](https://avatars.githubusercontent.com/u/169477?v=4)](https://github.com/fagundes "fagundes (13 commits)")[![LittleBigFox](https://avatars.githubusercontent.com/u/7079779?v=4)](https://github.com/LittleBigFox "LittleBigFox (5 commits)")[![ridamaum](https://avatars.githubusercontent.com/u/4272436?v=4)](https://github.com/ridamaum "ridamaum (4 commits)")[![noxlux](https://avatars.githubusercontent.com/u/6777021?v=4)](https://github.com/noxlux "noxlux (2 commits)")[![ixmon](https://avatars.githubusercontent.com/u/6829763?v=4)](https://github.com/ixmon "ixmon (1 commits)")[![locojohn](https://avatars.githubusercontent.com/u/881947?v=4)](https://github.com/locojohn "locojohn (1 commits)")[![neo79a](https://avatars.githubusercontent.com/u/9600365?v=4)](https://github.com/neo79a "neo79a (1 commits)")[![Ohda](https://avatars.githubusercontent.com/u/3942712?v=4)](https://github.com/Ohda "Ohda (1 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (1 commits)")[![pjona](https://avatars.githubusercontent.com/u/170732?v=4)](https://github.com/pjona "pjona (1 commits)")[![quimcalpe](https://avatars.githubusercontent.com/u/1057151?v=4)](https://github.com/quimcalpe "quimcalpe (1 commits)")[![RubenHarms](https://avatars.githubusercontent.com/u/8577820?v=4)](https://github.com/RubenHarms "RubenHarms (1 commits)")[![salemgolemugoo](https://avatars.githubusercontent.com/u/1916111?v=4)](https://github.com/salemgolemugoo "salemgolemugoo (1 commits)")[![szutkowski](https://avatars.githubusercontent.com/u/7755375?v=4)](https://github.com/szutkowski "szutkowski (1 commits)")[![94noni](https://avatars.githubusercontent.com/u/1358361?v=4)](https://github.com/94noni "94noni (1 commits)")[![tpohchai](https://avatars.githubusercontent.com/u/40650661?v=4)](https://github.com/tpohchai "tpohchai (1 commits)")[![acoquoin](https://avatars.githubusercontent.com/u/990484?v=4)](https://github.com/acoquoin "acoquoin (1 commits)")[![divinity76](https://avatars.githubusercontent.com/u/1874996?v=4)](https://github.com/divinity76 "divinity76 (1 commits)")

---

Tags

pdfhtmlhtml2pdf

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rdmumayan-html2pdf/health.svg)

```
[![Health](https://phpackages.com/badges/rdmumayan-html2pdf/health.svg)](https://phpackages.com/packages/rdmumayan-html2pdf)
```

###  Alternatives

[spipu/html2pdf

Html2Pdf is a HTML to PDF converter written in PHP - It uses TCPDF - OFFICIAL PACKAGE

1.8k10.6M45](/packages/spipu-html2pdf)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3685.2M19](/packages/gotenberg-gotenberg-php)[spiritix/php-chrome-html2pdf

A PHP library for converting HTML to PDF using Google Chrome

153472.0k3](/packages/spiritix-php-chrome-html2pdf)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[kartik-v/yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.

1605.5M84](/packages/kartik-v-yii2-mpdf)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
