PHPackages                             mpdf/examples - 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. mpdf/examples

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

mpdf/examples
=============

Example repository for Mpdf HTML to PDF generator

13266148[3 issues](https://github.com/mpdf/mpdf-examples/issues)[1 PRs](https://github.com/mpdf/mpdf-examples/pulls)PHP

Since Mar 15Pushed 3y ago14 watchersCompare

[ Source](https://github.com/mpdf/mpdf-examples)[ Packagist](https://packagist.org/packages/mpdf/examples)[ RSS](/packages/mpdf-examples/feed)WikiDiscussions development Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

mPDF examples repository
========================

[](#mpdf-examples-repository)

How to use
----------

[](#how-to-use)

1. Clone the repository or download the ZIP release
2. Initialize dependencies by running `$ composer install`
    - You will need to have [composer installed](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).
3. Then run example PHP files either from command line or from the browser
    - In the command line, the files are sent to `stdout`, the most convenient is to redirect them to file with `>` operator
    - In the browser, the output is sent inline to the browser so it should display in default PDF viewer

There is a generated list of example links for browser in the repository index.php file.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.6% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/195675?v=4)[Matěj Humpál](/maintainers/finwe)[@finwe](https://github.com/finwe)

---

Top Contributors

[![finwe](https://avatars.githubusercontent.com/u/195675?v=4)](https://github.com/finwe "finwe (38 commits)")[![jakejackson1](https://avatars.githubusercontent.com/u/2918419?v=4)](https://github.com/jakejackson1 "jakejackson1 (6 commits)")[![JanSlabon](https://avatars.githubusercontent.com/u/12390057?v=4)](https://github.com/JanSlabon "JanSlabon (1 commits)")[![yagamidev](https://avatars.githubusercontent.com/u/31775986?v=4)](https://github.com/yagamidev "yagamidev (1 commits)")

### Embed Badge

![Health badge](/badges/mpdf-examples/health.svg)

```
[![Health](https://phpackages.com/badges/mpdf-examples/health.svg)](https://phpackages.com/packages/mpdf-examples)
```

###  Alternatives

[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.4k](/packages/tarfin-labs-easy-pdf)[akeneo-labs/excel-connector-bundle

Akeneo PIM Excel connector bundle

166.4k](/packages/akeneo-labs-excel-connector-bundle)

PHPackages © 2026

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