PHPackages                             msti/pdf-converter - 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. msti/pdf-converter

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

msti/pdf-converter
==================

Creates PDFs using different backend converters. Currently supports dompdf and html2pdf

1.0.0(7y ago)0133PHP

Since Sep 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/msti/pdf-converter)[ Packagist](https://packagist.org/packages/msti/pdf-converter)[ RSS](/packages/msti-pdf-converter/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

About
-----

[](#about)

This library allows you to use different PDF converter backends for producing pdf files. Currently supports [dompdf](https://github.com/dompdf/dompdf) and [html2pdf](https://github.com/spipu/html2pdf).

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

[](#installation)

> composer require msti/pdf-converter

Also, at least one of dompdf or html2pdf is required:

> composer require dompdf/dompdf

or

> composer require spipu/html2pdf

Usage
-----

[](#usage)

```
$vars = [
    'orientation' => 'landscape',
    'papersize' => 'A4',
    'path' => '/tmp',
    'filename' => 'pdf-converter.pdf'
];

$contents = 'hello there';

$filename = new PDFConverterFactory()->getPDFConverter('html2pdf')->generate($contents, $vars);

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Unknown

Total

1

Last Release

2850d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

composer-packagepdf-converterphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/msti-pdf-converter/health.svg)

```
[![Health](https://phpackages.com/badges/msti-pdf-converter/health.svg)](https://phpackages.com/packages/msti-pdf-converter)
```

###  Alternatives

[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)
