PHPackages                             amonger/wkhtmltopdf-api - 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. amonger/wkhtmltopdf-api

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

amonger/wkhtmltopdf-api
=======================

v1.3.2(9y ago)4295PHP

Since Jan 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/amonger/wkhtmltopdf-api)[ Packagist](https://packagist.org/packages/amonger/wkhtmltopdf-api)[ RSS](/packages/amonger-wkhtmltopdf-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

wkhtmltopdf docker
==================

[](#wkhtmltopdf-docker)

This is a docker micro-service which has a simple api to generate PDFs.

To set up the server
--------------------

[](#to-set-up-the-server)

```
docker build -t wkhtmltopdf .
docker run -d -p 80:80 -v $(pwd)/api:/var/www/html wkhtmltopdf

```

To put in a PHP project
-----------------------

[](#to-put-in-a-php-project)

You'll need to set an Authorization header. This is defined in the .env file in the server code.

```
require_once "vendor/autoload.php";

use GuzzleHttp\Client;
use PDFGenerator\PDFGenerator;
use PDFGenerator\Implementation\RemotePDF;

$client = new Client([
  'base_uri' => 'http://192.168.0.1:8080',
  'headers'  => ['auth' => '123456789']
]);
$generator = new PDFGenerator(new RemotePDF($client));

header("Content-type:application/pdf");

echo $generator->fromURL('http://www.google.co.uk');
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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

Every ~73 days

Recently: every ~127 days

Total

8

Last Release

3304d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bfc4668b3600a449283b9375d4c111420c80fcd31e14c80ab698c7a31248823?d=identicon)[haveacigaro](/maintainers/haveacigaro)

---

Top Contributors

[![amonger](https://avatars.githubusercontent.com/u/147537?v=4)](https://github.com/amonger "amonger (21 commits)")

### Embed Badge

![Health badge](/badges/amonger-wkhtmltopdf-api/health.svg)

```
[![Health](https://phpackages.com/badges/amonger-wkhtmltopdf-api/health.svg)](https://phpackages.com/packages/amonger-wkhtmltopdf-api)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[ilovepdf/ilovepdf-php

iLovePDF Php Api

184506.2k](/packages/ilovepdf-ilovepdf-php)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

31169.4k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

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