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.

0273↓100%PHP

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 1mo 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 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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