PHPackages                             marifhasan/printpdf - 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. marifhasan/printpdf

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

marifhasan/printpdf
===================

Quick pdf builder, Laravel, PHP

v1.0(1y ago)1118MITPHPPHP ^7.4|^8.0|^8.2

Since Oct 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/marifhasan/printpdf)[ Packagist](https://packagist.org/packages/marifhasan/printpdf)[ Docs](https://github.com/marifhasan/printpdf)[ RSS](/packages/marifhasan-printpdf/feed)WikiDiscussions main Synced 1mo ago

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

PrintPDF is a PHP, Laravel package for [mpdf/mpdf](https://packagist.org/packages/mpdf/mpdf) library

Installation
============

[](#installation)

Official installation method is via composer and its packagist package [marifhasan/printpdf](https://packagist.org/packages/marifhasan/printpdf).

```
composer require marifhasan/printpdf --dev

```

Usage
=====

[](#usage)

Add OrderPrint pdf for your application. by below command

```
php artisan make:print OrderPrint

```

It will create `app/Prints/OrderPrint.php` File inside app directory, add `resources/views/prints` directory and `order-print.blade.php`

Modify `app/Prints/OrderPrint.php` and `resources/views/prints/order-print.blade.php` for desired pdf.

For modifying the pdf property change the 'options' method in side of `app/Prints/OrderPrint.php` file.

Usage
=====

[](#usage-1)

Declare route in your `routes/web.php` file.

```
use

Route::get('/{order:id}/print', [OrderController::class, 'print'])->name('print'); // order.print
```

Your `OrderController.php` add this method

```
use App\Models\Order;
use App\Prints\OrderPrint;
use Marifhasan\PrintPDF\PrintPDF;

/**
* Display the order print form.
*/
public function print(Order $order)
{
	return PrintPDF::make(new OrderPrint($order))
		->inline();
}
```

available methods for mPDF property

```
inline() for 'I' //mPDF property
download() for 'D' //mPDF property
file() for 'F' //mPDF property
string() for 'S' //mPDF property

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

590d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61937f2bd70ff18f4db4f8742a083e94788777730e8c404c658aad55d2bc053b?d=identicon)[marifhasan](/maintainers/marifhasan)

![](https://www.gravatar.com/avatar/369a5ce44c1a1b0d665de1c11b4ec746baed82577635d9d2ad15552453f7c8c3?d=identicon)[shooorov](/maintainers/shooorov)

---

Top Contributors

[![marifhasan](https://avatars.githubusercontent.com/u/1210425?v=4)](https://github.com/marifhasan "marifhasan (38 commits)")

### Embed Badge

![Health badge](/badges/marifhasan-printpdf/health.svg)

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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