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

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

thomascmobley/html2pdf
======================

calls aws-lambda through aws-gateway-api to create pdf from html

020PHP

Since Dec 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ThomasCMobley/html2pdf)[ Packagist](https://packagist.org/packages/thomascmobley/html2pdf)[ RSS](/packages/thomascmobley-html2pdf/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

This package sends a curl containing various data to AWS API Gateway which passes it on to an AWS Lambda function to transform a html (raw or url) to pdf and store it to the indicated s3 bucket/filepath/filename.

Use: $html2pdf = new ThomasCMobley\_Html2Pdf(); $parameters = \[ 'apiurl'=&gt;'', 'apikey'=&gt;'47YexK2GHWapTiVm2aSGyalRylF5pvAkads7fgSJ', 'data'=&gt;$data, 'bucket'=&gt;'tclassifieds', 'fontlinks'=&gt;\[''\], 'domain'=&gt;'', 'options'=&gt;\['footerCenter'=&gt;'Page \[page\] of \[toPage\]'\] \]; $return = $html2pdf-&gt;transform($parameters);

apiurl, apikey and data are required. data may be a URI (including the http(s)://) or raw html fontlinks is a link to a cdn containing the desired fonts. Fonts may also be loaded into the Fonts folder. domain contains the actual domain raw html needs for loading stylesheets/js/images. options is an array of any of the listed options contained in the head of the class

Return: On success it returns an array containing bucket, filename and filepath.
On failure it returns an array containing error information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![ThomasCMobley](https://avatars.githubusercontent.com/u/4417552?v=4)](https://github.com/ThomasCMobley "ThomasCMobley (17 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/thomascmobley-html2pdf/health.svg)](https://phpackages.com/packages/thomascmobley-html2pdf)
```

###  Alternatives

[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

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

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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