PHPackages                             web-chefs/puppeteer-to-pdf - 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. web-chefs/puppeteer-to-pdf

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

web-chefs/puppeteer-to-pdf
==========================

Convert a URL or HTML to a PDF using headless Chrome

v0.1(8y ago)137MITPHPPHP ~5.6|~7.0

Since Jan 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/web-chefs/PuppeteerToPdf)[ Packagist](https://packagist.org/packages/web-chefs/puppeteer-to-pdf)[ Docs](https://github.com/web-chefs/PuppeteerToPdf)[ RSS](/packages/web-chefs-puppeteer-to-pdf/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Convert a webpage to pdf using headless Chrome
==============================================

[](#convert-a-webpage-to-pdf-using-headless-chrome)

[![Latest Version](https://camo.githubusercontent.com/31bc18f4e3f5e502c02c70d47223c01c102cc1f8fe90b2165b6ca9939d1609d5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7765622d63686566732f507570706574656572546f5064662e7376673f7374796c653d666c61742d737175617265)](https://github.com/web-chefs/PuppeteerToPdf/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/6592a99a3486ab2c7427c55661d847eacd937c1e2f2af2ad795e4cf6b32a0eec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765622d63686566732f7075707065746565722d746f2d7064662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/web-chefs/puppeteer-to-pdf)

The package can convert a webpage to a pdf. The conversion is done behind the scenes by [Puppeteer](https://github.com/GoogleChrome/puppeteer) which controls a headless version of Google Chrome.

Originally base on [spatie/browsershot](https://github.com/spatie/browsershot).

Install
-------

[](#install)

```
composer require "web-chefs/puppeteer-to-pdf"

```

Why Fork
--------

[](#why-fork)

WebChefs current tries where possible to support PHP 5.6 and [spatie/browsershot](https://github.com/spatie/browsershot) requires PHP 7.0 and above.

[spatie/browsershot](https://github.com/spatie/browsershot) supports a lot of image screen shot functionality that adds a lot of extra PHP 7.0 dependencies.

So to meet our requirements of generating a PDF running on PHP 5.6 required that we strip out any PHP 7.0 specific functionality this meant removing screen shot image functionality.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3024d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8247fd878aaf650727c999405f9aa95af762af658410752ef51f777ec296a7f?d=identicon)[web-chefs](/maintainers/web-chefs)

---

Top Contributors

[![JFossey](https://avatars.githubusercontent.com/u/4981545?v=4)](https://github.com/JFossey "JFossey (15 commits)")

---

Tags

headless-chromehtml-parsernodejspdfpdf-generationphppuppeteerpdfconvertheadlesswebpagechromepuppeteer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/web-chefs-puppeteer-to-pdf/health.svg)

```
[![Health](https://phpackages.com/badges/web-chefs-puppeteer-to-pdf/health.svg)](https://phpackages.com/packages/web-chefs-puppeteer-to-pdf)
```

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[chrome-php/chrome

Instrument headless chrome/chromium instances from PHP

2.6k4.5M64](/packages/chrome-php-chrome)[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)[daandesmedt/phpheadlesschrome

A PHP wrapper for using Google Chrome Headless mode. Convert URL or HTML to a PDF / screenshot. Easy to use and OOP interfaced.

92233.1k](/packages/daandesmedt-phpheadlesschrome)[tesla-software/chrome2pdf

Convert HTML to Pdf using headless chrome.

308.1k](/packages/tesla-software-chrome2pdf)

PHPackages © 2026

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