PHPackages                             interactively/pdfmerger - 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. interactively/pdfmerger

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

interactively/pdfmerger
=======================

PDFMerger for PHP (version 5.3 to 7.2)

v1.0(5y ago)024.5k↓22.5%MITPHPPHP &gt;=5.3.0

Since Jan 6Pushed 5y agoCompare

[ Source](https://github.com/CiprianOpreaPrestimedia/PDFMerger)[ Packagist](https://packagist.org/packages/interactively/pdfmerger)[ RSS](/packages/interactively-pdfmerger/feed)WikiDiscussions master Synced 1mo ago

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

PDFMerger for PHP (version 5.3 to 7.2)
======================================

[](#pdfmerger-for-php-version-53-to-72)

PDFMerger forked from [myokyawhtun/PDFMerger](https://github.com/myokyawhtun/PDFMerger)

New features:

- PSR-4 support
- Namespaces support
- Possibility to print header and/or footer on the merged pdf

PHP 7 Compatible
----------------

[](#php-7-compatible)

I tested with PHP 7.2.3 on my develpment machine and it works well.

Support of PDF 1.5 and PDF 1.6
------------------------------

[](#support-of-pdf-15-and-pdf-16)

FPDF and FPDI libraries replaced by TCPDF with TCPDI extension and parser.

### Example Usage

[](#example-usage)

```
$loader = require __DIR__ . '/../vendor/autoload.php';

$pdf = new andreaventuri\PdfMerger\PdfMerger;

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

$pdf->merge('file', 'samplepdfs/TEST2.pdf'); // generate the file

$pdf->merge('download', 'samplepdfs/test.pdf'); // force download

// REPLACE 'file' WITH 'browser', 'download', 'string', or 'file' for output options
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

1958d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ab8ed234d07c14f718f8a4dc5945f562b741bf9d75a73f40b58fc4c53d9dab5?d=identicon)[CiprianOpreaPrestimedia](/maintainers/CiprianOpreaPrestimedia)

---

Top Contributors

[![myokyawhtun](https://avatars.githubusercontent.com/u/295096?v=4)](https://github.com/myokyawhtun "myokyawhtun (18 commits)")[![CiprianOpreaPrestimedia](https://avatars.githubusercontent.com/u/39329521?v=4)](https://github.com/CiprianOpreaPrestimedia "CiprianOpreaPrestimedia (9 commits)")[![andreaventuri](https://avatars.githubusercontent.com/u/1456430?v=4)](https://github.com/andreaventuri "andreaventuri (3 commits)")[![Kadmillos](https://avatars.githubusercontent.com/u/2362200?v=4)](https://github.com/Kadmillos "Kadmillos (1 commits)")[![notriddle](https://avatars.githubusercontent.com/u/1593513?v=4)](https://github.com/notriddle "notriddle (1 commits)")

---

Tags

pdfTCPDFtcpdipdf merge

### Embed Badge

![Health badge](/badges/interactively-pdfmerger/health.svg)

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

###  Alternatives

[elibyy/tcpdf-laravel

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

3542.7M5](/packages/elibyy-tcpdf-laravel)[propa/tcpdi

TCPDI is a PHP class for importing PDF to use with TCPDF

231.1M1](/packages/propa-tcpdi)[bithost-gmbh/pdfviewhelpers

This is a TYPO3 CMS extension that provides various Fluid ViewHelpers to generate PDF documents.

45242.7k2](/packages/bithost-gmbh-pdfviewhelpers)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

22709.1k](/packages/qipsius-tcpdf-bundle)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1718.3k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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