PHPackages                             nimfus/lara-pdf-merger - 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. nimfus/lara-pdf-merger

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

nimfus/lara-pdf-merger
======================

3.0(3w ago)0155MITPHPPHP &gt;=8.3

Since Nov 17Pushed 3w agoCompare

[ Source](https://github.com/Nimfus/lara-pdf-merger)[ Packagist](https://packagist.org/packages/nimfus/lara-pdf-merger)[ Docs](https://github.com/MarwenSami/lara-pdf-merger)[ RSS](/packages/nimfus-lara-pdf-merger/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)DependenciesVersions (11)Used By (0)

lara-pdf-merger
===============

[](#lara-pdf-merger)

Drop-in replacement for the original package from [deltaaskii/lara-pdf-merger](https://github.com/deltaaskii/lara-pdf-merger) that works under *PHP 8.3*

Original written by

This Package was tested on **Laravel 13**

### Improvements

[](#improvements)

- Code source refactoring
- Enabling the Facade use
- Adding duplex merge feature
- Separate save operation from the merge

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

[](#installation)

- Require this package in your composer.json by adding those lines

```
composer require nimfus/lara-pdf-merger

```

Usage
-----

[](#usage)

```
use LynX39\LaraPdfMerger\Facades\PdfMerger;

//...

$pdfMerger = PDFMerger::init(); //Initialize the merger

$pdfMerger->addPDF('samplepdfs/one.pdf', '1, 3, 4');
$pdfMerger->addPDF('samplepdfs/two.pdf', '1-2');
$pdfMerger->addPDF('samplepdfs/three.pdf', 'all');

//You can optionally specify a different orientation for each PDF
$pdfMerger->addPDF('samplepdfs/one.pdf', '1, 3, 4', 'L');
$pdfMerger->addPDF('samplepdfs/two.pdf', '1-2', 'P');

$pdfMerger->merge(); //For a normal merge (No blank page added)

// OR..
$pdfMerger->duplexMerge(); //Merges your provided PDFs and adds blank pages between documents as needed to allow duplex printing

// optional parameter can be passed to the merge functions for orientation (P for protrait, L for Landscape).
// This will be used for every PDF that doesn't have an orientation specified

$pdfMerger->save("file_path.pdf");

// OR...
$pdfMerger->save("file_name.pdf", "download");
// REPLACE 'download' WITH 'browser', 'download', 'string', or 'file' for output options
```

Authors
-------

[](#authors)

- [RamonSmit](https://github.com/RamonSmit)
- [MarwenSami](https://github.com/MarwenSami)

Credits
-------

[](#credits)

- **deltaaskii** [deltaaskii/lara-pdf-merger](https://github.com/deltaaskii/lara-pdf-merger)
- **DALTCORE** [DALTCORE/lara-pdf-merger](https://github.com/DALTCORE/lara-pdf-merger)

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance95

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor3

3 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.

###  Release Activity

Cadence

Every ~342 days

Recently: every ~598 days

Total

10

Last Release

24d ago

Major Versions

v1.0.0 → 2.0.02019-08-26

2.3.1 → 3.02026-04-24

PHP version history (2 changes)v1.0.0PHP &gt;=5.4

2.3.1PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/8af94dc09a8dd06b83b7f35d1f6b7db7b64b0db8c375c98177f69f0d40d66c02?d=identicon)[Nimfus](/maintainers/Nimfus)

---

Top Contributors

[![Nimfus](https://avatars.githubusercontent.com/u/6216020?v=4)](https://github.com/Nimfus "Nimfus (8 commits)")[![MarwenSami](https://avatars.githubusercontent.com/u/6515188?v=4)](https://github.com/MarwenSami "MarwenSami (6 commits)")[![muhammadsaeedparacha](https://avatars.githubusercontent.com/u/2680384?v=4)](https://github.com/muhammadsaeedparacha "muhammadsaeedparacha (4 commits)")[![RamonSmit](https://avatars.githubusercontent.com/u/1906631?v=4)](https://github.com/RamonSmit "RamonSmit (4 commits)")[![OpexNetHam](https://avatars.githubusercontent.com/u/15614809?v=4)](https://github.com/OpexNetHam "OpexNetHam (2 commits)")[![eriksape](https://avatars.githubusercontent.com/u/1754290?v=4)](https://github.com/eriksape "eriksape (2 commits)")[![rafwell](https://avatars.githubusercontent.com/u/2893078?v=4)](https://github.com/rafwell "rafwell (1 commits)")[![s-yesin](https://avatars.githubusercontent.com/u/45064022?v=4)](https://github.com/s-yesin "s-yesin (1 commits)")[![Ishan-kiwi](https://avatars.githubusercontent.com/u/27217701?v=4)](https://github.com/Ishan-kiwi "Ishan-kiwi (1 commits)")[![JavierCabezas](https://avatars.githubusercontent.com/u/3007616?v=4)](https://github.com/JavierCabezas "JavierCabezas (1 commits)")[![LBreda](https://avatars.githubusercontent.com/u/633783?v=4)](https://github.com/LBreda "LBreda (1 commits)")[![netero](https://avatars.githubusercontent.com/u/2885021?v=4)](https://github.com/netero "netero (1 commits)")[![NicksonYap](https://avatars.githubusercontent.com/u/5380731?v=4)](https://github.com/NicksonYap "NicksonYap (1 commits)")

---

Tags

laravelpdfmergemanagepaginatemergerduplex merge

### Embed Badge

![Health badge](/badges/nimfus-lara-pdf-merger/health.svg)

```
[![Health](https://phpackages.com/badges/nimfus-lara-pdf-merger/health.svg)](https://phpackages.com/packages/nimfus-lara-pdf-merger)
```

###  Alternatives

[lynx39/lara-pdf-merger

60176.2k](/packages/lynx39-lara-pdf-merger)[webklex/laravel-pdfmerger

Generic PDF merger for Laravel

1422.6M2](/packages/webklex-laravel-pdfmerger)

PHPackages © 2026

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