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

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

thelia/html2pdf
===============

\[Thelia fork\] Html2Pdf is a HTML to PDF converter written in PHP5 (it uses TCPDF). OFFICIAL PACKAGE

v5.2.2(6y ago)02.9k↓100%OSL-3.0PHPPHP ^5.6 || ^7.0

Since Dec 11Pushed 4y agoCompare

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

READMEChangelogDependencies (3)Versions (12)Used By (0)

Html2Pdf
========

[](#html2pdf)

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

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

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~156 days

Recently: every ~252 days

Total

11

Last Release

2239d ago

Major Versions

v4.6.1 → v5.0.02017-06-15

PHP version history (5 changes)v4.4.0PHP &gt;=5.2

v4.5.0PHP &gt;=5.3.2

v5.0.0PHP ~5.4 || ~7.0

v5.1.0PHP ^5.4 || ^7.0

v5.2.2PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

[![spipu](https://avatars.githubusercontent.com/u/10595905?v=4)](https://github.com/spipu "spipu (258 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)")[![coffeemedia](https://avatars.githubusercontent.com/u/1494115?v=4)](https://github.com/coffeemedia "coffeemedia (3 commits)")[![lopes-vincent](https://avatars.githubusercontent.com/u/6057206?v=4)](https://github.com/lopes-vincent "lopes-vincent (3 commits)")[![94noni](https://avatars.githubusercontent.com/u/1358361?v=4)](https://github.com/94noni "94noni (2 commits)")[![axi](https://avatars.githubusercontent.com/u/389340?v=4)](https://github.com/axi "axi (2 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)")[![jigneshsolanki](https://avatars.githubusercontent.com/u/8208339?v=4)](https://github.com/jigneshsolanki "jigneshsolanki (1 commits)")[![jjsty1e](https://avatars.githubusercontent.com/u/5469845?v=4)](https://github.com/jjsty1e "jjsty1e (1 commits)")[![goulvench](https://avatars.githubusercontent.com/u/419086?v=4)](https://github.com/goulvench "goulvench (1 commits)")[![dynshon](https://avatars.githubusercontent.com/u/9192187?v=4)](https://github.com/dynshon "dynshon (1 commits)")[![locojohn](https://avatars.githubusercontent.com/u/881947?v=4)](https://github.com/locojohn "locojohn (1 commits)")[![divinity76](https://avatars.githubusercontent.com/u/1874996?v=4)](https://github.com/divinity76 "divinity76 (1 commits)")[![marbetschar](https://avatars.githubusercontent.com/u/392542?v=4)](https://github.com/marbetschar "marbetschar (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)")[![Ohda](https://avatars.githubusercontent.com/u/3942712?v=4)](https://github.com/Ohda "Ohda (1 commits)")

---

Tags

pdfhtmlhtml2pdf

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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