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 1mo 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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

2794d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2ea111650a5d2cf1bee5addd46e441165920d1ff7a5747972418a4d21dd8cf1?d=identicon)[msti](/maintainers/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

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.2k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M100](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M128](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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