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

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

ivanmijatovic89/pdf-merger
==========================

PDF File Merger for PHP5

0509↓50%PHP

Since Dec 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ivanmijatovic89/pdf-merger)[ Packagist](https://packagist.org/packages/ivanmijatovic89/pdf-merger)[ RSS](/packages/ivanmijatovic89-pdf-merger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#PDFMerger for PHP (PHP 5 Compatible)

Original written by
Forked from

Composer Compatible
-------------------

[](#composer-compatible)

I've just forked this package to make it compatible with composer

To install add this line to your composer.json

`"clegginabox/pdf-merger": "dev-master"`

### Example Usage

[](#example-usage)

```
$pdf = new \Clegginabox\PDFMerger\PDFMerger;

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

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

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

Changes
-------

[](#changes)

I've just forked this package to make it compatible with composer

I change this line of code

```
$fpdi->AddPage('P', array($size['w'], $size['h']));

```

to

```
$fpdi->AddPage( $size['h'] > $size['w'] ? 'P' : 'L', array($size['w'], $size['h']));

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca45d714c7d987edb5100df989e7642f293cc2dd1174d7645e4c475533b31794?d=identicon)[ivanmijatovic89@gmail.com](/maintainers/ivanmijatovic89@gmail.com)

---

Top Contributors

[![myokyawhtun](https://avatars.githubusercontent.com/u/295096?v=4)](https://github.com/myokyawhtun "myokyawhtun (5 commits)")[![ivanmijatovic89](https://avatars.githubusercontent.com/u/5983331?v=4)](https://github.com/ivanmijatovic89 "ivanmijatovic89 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.2k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

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

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M130](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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