PHPackages                             mediatech/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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. mediatech/php-wkhtmltopdf

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

mediatech/php-wkhtmltopdf
=========================

A PHP wrapper interface to wkhtmltopdf command tool

v1.1.0(9y ago)120.2kMITPHPPHP &gt;=5.5

Since Jul 4Pushed 8y ago1 watchersCompare

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

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

PHP WkHtmlToPdf - interface to wkhtmltopdf command
==================================================

[](#php-wkhtmltopdf---interface-to-wkhtmltopdf-command)

[![Packagist](https://camo.githubusercontent.com/6e2884d540b35595c8f519c624ba109b6734b6e904622647183c580857614cd4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65646961746563682f7068702d776b68746d6c746f7064662e7376673f7374796c653d666c61742d737175617265266d61784167653d32353932303030)](https://packagist.org/packages/mediatech/php-wkhtmltopdf)[![License](https://camo.githubusercontent.com/086b7d822e9be8c798f4956d23d1b7921f16e18b61969643a4b783e60634001b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d65646961746563682f7068702d776b68746d6c746f7064662e7376673f7374796c653d666c61742d737175617265266d61784167653d32353932303030)](https://github.com/newmediatech/php-wkhtmltopdf/blob/master/LICENSE)

PHP WkHtmlToPdf provides OOP interface to ease PDF creation from HTML contents using [wkhtmltopdf](http://wkhtmltopdf.org) command tool.
The **wkhtmltopdf** command tool must be installed previously on your server.

Installation
------------

[](#installation)

Install the latest package version through [Composer](http://getcomposer.org):

```
composer require mediatech/php-wkhtmltopdf:dev-master

```

or

```
"require": {
    "mediatech/php-wkhtmltopdf": "dev-master"
},

```

Using example
-------------

[](#using-example)

Load HTML from string and save contents to PDF specified file.

```
use MediaTech\Pdf;

$pdf = new Pdf();
$pdf->loadHtml('test')
    ->save(/path/to/file.pdf);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~0 days

Total

2

Last Release

3649d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9839955?v=4)[Aleksandr Ivanov](/maintainers/misantron)[@misantron](https://github.com/misantron)

---

Top Contributors

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

---

Tags

pdfwkhtmltopdfhtml-to-pdfpdf converter

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k72.4M62](/packages/knplabs-knp-snappy)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k26.5M51](/packages/barryvdh-laravel-snappy)[mikehaertl/phpwkhtmltopdf

A slim PHP wrapper around wkhtmltopdf with an easy to use and clean OOP interface

1.6k21.5M46](/packages/mikehaertl-phpwkhtmltopdf)[h4cc/wkhtmltopdf-amd64

Convert html to pdf using webkit (qtwebkit). Static linked linux binary for amd64 systems.

50725.6M39](/packages/h4cc-wkhtmltopdf-amd64)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3856.2M31](/packages/gotenberg-gotenberg-php)[cangelis/pdf

Yet another HTML to PDF Converter based on wkhtmltopdf

5964.4k1](/packages/cangelis-pdf)

PHPackages © 2026

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