PHPackages                             abiodunjames/prodigypdf - 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. abiodunjames/prodigypdf

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

abiodunjames/prodigypdf
=======================

Laravel PDF

0.1(8y ago)120MITHTMLPHP &gt;=5.4.0

Since Dec 16Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

ProdigyPDF
----------

[](#prodigypdf)

This package is based on a fork from [laravel-dompdf](https://github.com/barryvdh/laravel-dompdf), modified to meet the constraints of a laravel 5.3 project i'm currently working on.

If you need a pdf package for all laravel versions, please check [laravel-dompdf](https://github.com/barryvdh/laravel-dompdf).

Laravel 5.3
-----------

[](#laravel-53)

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

```
'Abiodunjames\Prodigypdf\ServiceProvider',

```

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

```
'PDF' => 'Abiodunjames\Prodigypdf\Facade',

```

Mail certificate to user

```
 $pdf=    PDF::loadView('prodigypdf::certificate',[]);
  $email ='example@gmail.com';
  return $pdf->sendTo($email);

```

Save document to path

```
 $pdf=    PDF::loadView('prodigypdf::certificate',[]);
 $path= $pdf->saveToPath('/document'); //save to /storage/document

```

You can create a new DOMPDF instance and load a HTML string, file or view name. You can save it to a file, or stream (show in browser) or download.

```
$pdf = App::make('prodigypdf');
$pdf->loadHTML('Test');
return $pdf->stream();

```

Or use the facade:

```
$pdf = PDF::loadView('pdf.invoice', $data);
return $pdf->download('invoice.pdf');

```

You can chain the methods:

```
return PDF::loadFile(public_path().'/myfile.html')->save('/path-to/my_stored_file.pdf')->stream('download.pdf');

```

You can change the orientation and paper size, and hide or show errors (by default, errors are shown when debug is on)

```
PDF::loadHTML($html)->setPaper('a4')->setOrientation('landscape')->setWarnings(false)->save('myfile.pdf')

```

If you need the output as a string, you can get the rendered PDF with the output() function, so you can save/output it yourself.

You can copy the config-file (`config/dompdf.php`) to your local config to change some settings (default paper etc). You can also use your ConfigProvider to set certain keys.

### Tip: UTF-8 support

[](#tip-utf-8-support)

In your templates, set the UTF-8 Metatag:

```

```

### License

[](#license)

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

3066d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43f548ef67f4c5144e215529ff698a35075c25c6626372d51351fd43a83405ef?d=identicon)[abiodunjames](/maintainers/abiodunjames)

---

Tags

laravelpdfdompdfprodigypdf

### Embed Badge

![Health badge](/badges/abiodunjames-prodigypdf/health.svg)

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M274](/packages/barryvdh-laravel-dompdf)

PHPackages © 2026

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