PHPackages                             funcional-health/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. funcional-health/html2pdf

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

funcional-health/html2pdf
=========================

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

1.0.4(2y ago)01.1kOSL-3.0PHPPHP ^5.6 || ^7.0 || ^8.0

Since Apr 3Pushed 2y agoCompare

[ Source](https://github.com/funcional-health/html2pdf)[ Packagist](https://packagist.org/packages/funcional-health/html2pdf)[ Docs](http://html2pdf.fr/)[ RSS](/packages/funcional-health-html2pdf/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

Html2Pdf
========

[](#html2pdf)

Html2Pdf is a HTML to PDF converter written in PHP, and compatible with PHP **5.6** to **8.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.6 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

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.3% 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

Every ~113 days

Total

4

Last Release

774d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ae7f5fde27d411942da6d493b3000c9281ff3a77852275312de046ebc93527a?d=identicon)[renato127](/maintainers/renato127)

---

Top Contributors

[![spipu](https://avatars.githubusercontent.com/u/10595905?v=4)](https://github.com/spipu "spipu (287 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)")[![brunasrsantos](https://avatars.githubusercontent.com/u/197117935?v=4)](https://github.com/brunasrsantos "brunasrsantos (5 commits)")[![drickferreira](https://avatars.githubusercontent.com/u/11247764?v=4)](https://github.com/drickferreira "drickferreira (4 commits)")[![coffeemedia](https://avatars.githubusercontent.com/u/1494115?v=4)](https://github.com/coffeemedia "coffeemedia (3 commits)")[![renatofl](https://avatars.githubusercontent.com/u/4165266?v=4)](https://github.com/renatofl "renatofl (3 commits)")[![94noni](https://avatars.githubusercontent.com/u/1358361?v=4)](https://github.com/94noni "94noni (2 commits)")[![alanwillms](https://avatars.githubusercontent.com/u/704204?v=4)](https://github.com/alanwillms "alanwillms (2 commits)")[![axi](https://avatars.githubusercontent.com/u/389340?v=4)](https://github.com/axi "axi (2 commits)")[![CWBudde](https://avatars.githubusercontent.com/u/4097562?v=4)](https://github.com/CWBudde "CWBudde (2 commits)")[![noxlux](https://avatars.githubusercontent.com/u/6777021?v=4)](https://github.com/noxlux "noxlux (2 commits)")[![jjsty1e](https://avatars.githubusercontent.com/u/5469845?v=4)](https://github.com/jjsty1e "jjsty1e (1 commits)")[![f-houssait](https://avatars.githubusercontent.com/u/96026287?v=4)](https://github.com/f-houssait "f-houssait (1 commits)")[![divinity76](https://avatars.githubusercontent.com/u/1874996?v=4)](https://github.com/divinity76 "divinity76 (1 commits)")[![locojohn](https://avatars.githubusercontent.com/u/881947?v=4)](https://github.com/locojohn "locojohn (1 commits)")[![mheesters](https://avatars.githubusercontent.com/u/4849812?v=4)](https://github.com/mheesters "mheesters (1 commits)")[![tpohchai](https://avatars.githubusercontent.com/u/40650661?v=4)](https://github.com/tpohchai "tpohchai (1 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (1 commits)")

---

Tags

pdfhtmlhtml2pdf

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/funcional-health-html2pdf/health.svg)](https://phpackages.com/packages/funcional-health-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)[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)[danielboendergaard/phantom-pdf

A Package for generating PDF files using PhantomJS

72467.9k](/packages/danielboendergaard-phantom-pdf)

PHPackages © 2026

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