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)1124MITPHPPHP ^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 today

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 57% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

636d ago

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/22119191?v=4)[Shourov Shahadat](/maintainers/shooorov)[@shooorov](https://github.com/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

[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725172.4k14](/packages/tallstackui-tallstackui)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)

PHPackages © 2026

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