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

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

willmav5000/laravel-mpdf
========================

A mPDF Wrapper for Laravel

0.1.1(7y ago)03171MITPHPPHP &gt;=5.6

Since Jun 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/willmav5000/laravel-mpdf)[ Packagist](https://packagist.org/packages/willmav5000/laravel-mpdf)[ RSS](/packages/willmav5000-laravel-mpdf/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

mPDF wrapper for laravel inspired by [laravel-dompdf](https://github.com/barryvdh/laravel-dompdf)
=================================================================================================

[](#mpdf-wrapper-for-laravel-inspired-by-laravel-dompdf)

Require this package in your composer.json and update composer.

```
composer require willmav5000/laravel-mpdf

```

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

[](#installation)

### Laravel 5.x

[](#laravel-5x)

After updating composer, add the ServiceProvider to the providers array in config/app.php

```
Willmav5000\PDF\ServiceProvider::class,

```

You can optionally use the facade for shorter code. Add this to your facades:

```
'PDF' => Willmav5000\PDF\Facade::class,

```

Using
-----

[](#using)

Use 'PDF' Facade to interact with mPdf object

```
    $pdf = PDF::loadView('pdf.invoice', $data); // or PDF::loadHtml($html);
    return $pdf->download($filename); // or
    return $pdf->stream($filename);

```

You can access all the available mPDF methods directly by the same facade. eg.,

```
    $pdf->setColumns(2);
    $pdf->loadView($blade_path1, $data1); // or $pdf->loadHtml($html) or $pdf->WriteHTML('html)
    $pdf->addColumn();
    $pdf->loadView($blade_path2, $data2);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~474 days

Total

2

Last Release

2771d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.5.9

0.1.1PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/340c0875b8b6b538dcf47f93677821d52da11f7faf6c76c482521faf7e5e62a3?d=identicon)[willmav5000](/maintainers/willmav5000)

---

Top Contributors

[![praem90](https://avatars.githubusercontent.com/u/6235720?v=4)](https://github.com/praem90 "praem90 (12 commits)")[![willmav5000](https://avatars.githubusercontent.com/u/272902?v=4)](https://github.com/willmav5000 "willmav5000 (2 commits)")

---

Tags

laravellaravel-5-packagelaravel-frameworklaravel-packagempdfpdfpdf-generationlaravelpdfmpdf

### Embed Badge

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

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

###  Alternatives

[carlos-meneses/laravel-mpdf

Laravel Mpdf: Using Mpdf in Laravel to generate Pdfs.

4403.1M7](/packages/carlos-meneses-laravel-mpdf)

PHPackages © 2026

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