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

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

compassites/laravel-mpdf
========================

mPDF wrapper for Laravel 5.\*

0191PHP

Since May 12Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

### mPDF Wrapper for Laravel 5

[](#mpdf-wrapper-for-laravel-5)

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `compassites/laravel-mpdf`.

```
{
  "require": {
       "compassites/laravel-mpdf" : "master"
    }
}
```

Next, update Composer from the Terminal:

```
$ composer update
```

Once this operation completes, the final step is to add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
'Compassites\Mpdf\ServiceProvider',
```

You can also register facade.

```
'PDF' => 'Compassites\Mpdf\Facades\Pdf',
```

### License

[](#license)

This mPDF Wrapper for Laravel5 is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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://www.gravatar.com/avatar/0a0eb751af8432e8396ab4a4fa31deed07e02f6c51412118d59d36639359935a?d=identicon)[psbharathy](/maintainers/psbharathy)

---

Top Contributors

[![psbharathy](https://avatars.githubusercontent.com/u/5064987?v=4)](https://github.com/psbharathy "psbharathy (7 commits)")[![dmavrin](https://avatars.githubusercontent.com/u/7140790?v=4)](https://github.com/dmavrin "dmavrin (6 commits)")[![b3ni](https://avatars.githubusercontent.com/u/1167851?v=4)](https://github.com/b3ni "b3ni (1 commits)")[![mean-cj](https://avatars.githubusercontent.com/u/1191385?v=4)](https://github.com/mean-cj "mean-cj (1 commits)")

### Embed Badge

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

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

###  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.1M102](/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.6M130](/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)
