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 6y 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 3w ago

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 13% 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

[42coders/document-templates

Document template management package.

19940.0k](/packages/42coders-document-templates)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.4k](/packages/tarfin-labs-easy-pdf)[ikkez/f3-sheet

Some Excel and CSV utilities for PHP Fat-Free Framework

1414.8k](/packages/ikkez-f3-sheet)[nilgems/laravel-textract

A Laravel package to extract text from files like DOC, XL, Image, Pdf and more. I've developed this package by inspiring "npm textract".

195.7k](/packages/nilgems-laravel-textract)

PHPackages © 2026

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