PHPackages                             vdeapps/php-wkhtmltopdf - 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. [API Development](/categories/api)
4. /
5. vdeapps/php-wkhtmltopdf

ActiveLibrary[API Development](/categories/api)

vdeapps/php-wkhtmltopdf
=======================

Generate PDF from Url. Use an API

v1.0.0(7y ago)018MITPHPPHP &gt;=5.5.9

Since Jul 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/vdeapps/php-wkhtmltopdf)[ Packagist](https://packagist.org/packages/vdeapps/php-wkhtmltopdf)[ Docs](https://github.com/vdeapps/php-wkhtmltopdf)[ RSS](/packages/vdeapps-php-wkhtmltopdf/feed)WikiDiscussions master Synced 2w ago

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

php-wkhtmltopdf
===============

[](#php-wkhtmltopdf)

Call API to generate PDF from HTML

Usage
-----

[](#usage)

```

/*
 * Webserice provide from Docker: docker pull vdeapps/wkhtmltopdf:0.12.5
 * Map the 8137 port to 80 port of Docker
 */
$url = "http://localhost:8137/wk";
$pdf = new Wkhtmltopdf($this->url);

$options = $pdf->getPdfOptions();

       // set $options

$pdf->setPdfOptions($options);

// Url to make PDF
$pdf->setUrl("http://www.google.com");

// Output name file
$pdf->setNameFile('test.pdf');

// Outup directory
$pdf->setOutput(__DIR__.'/output');

// Create file
$pdf->generate();

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

2918d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

apipdflibraryvdeapps

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/vdeapps-php-wkhtmltopdf/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M12](/packages/checkout-checkout-sdk-php)[resend/resend-php

Resend PHP library.

617.2M37](/packages/resend-resend-php)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[volcengine/volcengine-php-sdk

118.7k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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