PHPackages                             leumas/html-to-pdf-with-phantom-js - 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. leumas/html-to-pdf-with-phantom-js

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

leumas/html-to-pdf-with-phantom-js
==================================

A package suitable for html to pdf generation. It contains a wrapper written in PHP for phantom api and a script written in javascript that will trigger phantom to convert html to pdf.It is more reliable and faster than mpdf or fpdf.

0273PHP

Since Jul 19Pushed 7y agoCompare

[ Source](https://github.com/TheEyeOfATiger/htmlToPdfWithPhantomJs)[ Packagist](https://packagist.org/packages/leumas/html-to-pdf-with-phantom-js)[ RSS](/packages/leumas-html-to-pdf-with-phantom-js/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Project purpose:
================

[](#project-purpose)

A package suitable for html to pdf generation. It contains a wrapper written in PHP for phantom api and a script written in javascript that will trigger phantom to convert html to pdf.
It is more reliable and faster than mpdf or fpdf.

#### Use Phantom versions below or equal to 1.9.8!

[](#use-phantom-versions-below-or-equal-to-198)

(1) PhantomJs &gt; 1.9.X has problems generating table and using page-breaks. That is why it will be wise to use PhantomJs major version 1.
(2) Using/including resources over https, use openssllib &lt;1.2.X and all will be good. More precise for ubuntu 14/16 you can use openssl 1.1.0f.

#### You can always fork and add other functionalities.

[](#you-can-always-fork-and-add-other-functionalities)

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![TheEyeOfATiger](https://avatars.githubusercontent.com/u/18441717?v=4)](https://github.com/TheEyeOfATiger "TheEyeOfATiger (10 commits)")

### Embed Badge

![Health badge](/badges/leumas-html-to-pdf-with-phantom-js/health.svg)

```
[![Health](https://phpackages.com/badges/leumas-html-to-pdf-with-phantom-js/health.svg)](https://phpackages.com/packages/leumas-html-to-pdf-with-phantom-js)
```

###  Alternatives

[rodenastyle/stream-parser

PHP Multiformat Streaming Parser

442206.4k2](/packages/rodenastyle-stream-parser)[akeneo-labs/excel-connector-bundle

Akeneo PIM Excel connector bundle

166.4k](/packages/akeneo-labs-excel-connector-bundle)

PHPackages © 2026

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