PHPackages                             contelli/easy-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. contelli/easy-pdf-merger

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

contelli/easy-pdf-merger
========================

1.0.0(1y ago)012MITPHPPHP &gt;=8.2

Since Sep 18Pushed 1y agoCompare

[ Source](https://github.com/TiDSchi/pdf-merger)[ Packagist](https://packagist.org/packages/contelli/easy-pdf-merger)[ Docs](https://github.com/TiDschi/pdf-merger)[ RSS](/packages/contelli-easy-pdf-merger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)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 was updated to work under *PHP 8.2 and above*

Original written by

This fork ist built to work outside laravel projects.

### Improvements

[](#improvements)

- Code polishing for PHP 8 compatibility
- Code source refactoring
- Enabling the Facade use
- Adding duplex merge feature
- Seperate save operation from the merge

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

[](#installation)

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

```
composer require contelli/easy-pdf-merger

```

- Run this commend in your terminal

```
composer update
``
## Usage

```php

require_once 'src/EasyPdfMerger/PdfManage.php';

use EasyPdfMerger\EasyPdfMerger\PdfManage as PDFMerger;

//...

$pdfMerger = new PDFMerger(); //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)

- [TiDschi](https://github.com/TiDschi)
- [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)
- **Contelli** [contelli/easy-pdf-merger](https://github.com/TiDschi/pdf-merger)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 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

Unknown

Total

1

Last Release

607d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9dc29eb6b8b5a157f097219ebab49e95a30631d3ae1cf3cb919c3c4fd38d935?d=identicon)[TiDschi](/maintainers/TiDschi)

---

Top Contributors

[![RamonSmit](https://avatars.githubusercontent.com/u/1906631?v=4)](https://github.com/RamonSmit "RamonSmit (11 commits)")[![MarwenSami](https://avatars.githubusercontent.com/u/6515188?v=4)](https://github.com/MarwenSami "MarwenSami (6 commits)")[![TiDSchi](https://avatars.githubusercontent.com/u/173626694?v=4)](https://github.com/TiDSchi "TiDSchi (3 commits)")[![kohlerdominik](https://avatars.githubusercontent.com/u/18621527?v=4)](https://github.com/kohlerdominik "kohlerdominik (3 commits)")[![eriksape](https://avatars.githubusercontent.com/u/1754290?v=4)](https://github.com/eriksape "eriksape (2 commits)")[![OpexNetHam](https://avatars.githubusercontent.com/u/15614809?v=4)](https://github.com/OpexNetHam "OpexNetHam (2 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)")[![nreimers](https://avatars.githubusercontent.com/u/10706961?v=4)](https://github.com/nreimers "nreimers (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)")[![s-yesin](https://avatars.githubusercontent.com/u/45064022?v=4)](https://github.com/s-yesin "s-yesin (1 commits)")[![LBreda](https://avatars.githubusercontent.com/u/633783?v=4)](https://github.com/LBreda "LBreda (1 commits)")

---

Tags

laravelpdfmergemanagepaginatemergerduplex merge

### Embed Badge

![Health badge](/badges/contelli-easy-pdf-merger/health.svg)

```
[![Health](https://phpackages.com/badges/contelli-easy-pdf-merger/health.svg)](https://phpackages.com/packages/contelli-easy-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)
