PHPackages                             maspriyono/l5mpdf - 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. maspriyono/l5mpdf

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

maspriyono/l5mpdf
=================

mPDF wrapper for Laravel 5

v0.0.2(10y ago)1631PHPPHP &gt;=5.4.0

Since Mar 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/maspriyono/L5MPDF)[ Packagist](https://packagist.org/packages/maspriyono/l5mpdf)[ RSS](/packages/maspriyono-l5mpdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

mPDF Wrapper for Laravel 5
--------------------------

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

In development.

### License

[](#license)

[![Build Status](https://camo.githubusercontent.com/1a14d91995035bedf130d2c268f83b39abfd5e53abd3c1dec8657a94b98d4fb6/68747470733a2f2f6170692e7472617669732d63692e6f72672f76736d6f726165732f7064662d6c61726176656c352e737667)](https://github.com/limweb/L5MPDF)[![License](https://camo.githubusercontent.com/235bda2617d2a27cd5d59d167df7619b65c5c52519b9da2ff6eeccb4676026fd/68747470733a2f2f706f7365722e707567782e6f72672f76736d6f726165732f6c61726176656c2d7064662f6c6963656e73652e737667)](https://packagist.org/packages/servit/l5mpdf)

Instalation
-----------

[](#instalation)

Add:

```
"maspriyono/l5mpdf": "dev-master@dev",

```

To your `composer.json`

or Run:

```
composer require maspriyono/l5mpdf

```

Then add:

```
'Servit\Mpdf\ServiceProvider',
```

To the `providers` array on your `config/app.php`

And

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

To the `aliases` array on yout `config/app.php` in order to enable the PDF facade

Usage
-----

[](#usage)

```
$router->get('/pdf/view', function() {
       // Config::set('mpdfconfig.pdf.options',['th','A5','','',10,10,10,10,10,5,'L'] );
       // Config::set('mpdfconfig.pdf.options','"th","A0","","",10,10,10,10,6,3');
       // $mpdfcfg = Config::get('mpdfconfig');
       // dump($mpdfcfg);
       // consolelog('mpdfcfg1',$mpdfcfg);
       $pdf = \App::make('mpdf.wrapper',['th','A0','','',10,10,10,10,10,5,'L']);
       // $pdf = \App::make('mpdf.wrapper');
       $pdf->WriteHTML('test');
       $pdf->AddPage('P');
       $pdf->WriteHTML('test2');
       $pdf->stream();
});
```

### Force download

[](#force-download)

```
$router->get('/pdf/download', function() {
    $html = view('pdfs.example')->render();

    return PDF::load($html)->download();
});
```

### Output to a file

[](#output-to-a-file)

```
$router->get('/pdf/output', function() {
    $html = view('pdfs.example')->render();

    PDF::load($html)
        ->filename('/tmp/example1.pdf')
        ->output();

    return 'PDF saved';
});
```

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

............. /\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76% 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 ~0 days

Total

2

Last Release

3702d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98228afbc2f37151ecae4bd91194824e045de9d36d3fa37ef2d8b84fd23c50d1?d=identicon)[maspri](/maintainers/maspri)

---

Top Contributors

[![limweb](https://avatars.githubusercontent.com/u/602579?v=4)](https://github.com/limweb "limweb (19 commits)")[![restuarifp](https://avatars.githubusercontent.com/u/5182230?v=4)](https://github.com/restuarifp "restuarifp (4 commits)")[![eduardocintra](https://avatars.githubusercontent.com/u/2051934?v=4)](https://github.com/eduardocintra "eduardocintra (2 commits)")

---

Tags

laravelpdfmpdf

### Embed Badge

![Health badge](/badges/maspriyono-l5mpdf/health.svg)

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

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