PHPackages                             jurosh/pdf-merge - 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. jurosh/pdf-merge

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

jurosh/pdf-merge
================

PHP PDF Merger

2.1.0(5y ago)1552.4M↓18.1%34[11 issues](https://github.com/jurosh/php-pdf-merge/issues)[2 PRs](https://github.com/jurosh/php-pdf-merge/pulls)3MITPHPPHP &gt;=5.6.20CI failing

Since Dec 7Pushed 1y ago7 watchersCompare

[ Source](https://github.com/jurosh/php-pdf-merge)[ Packagist](https://packagist.org/packages/jurosh/pdf-merge)[ Docs](https://github.com/jurosh/php-pdf-merge)[ RSS](/packages/jurosh-pdf-merge/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (3)

PDF Merge for PHP
=================

[](#pdf-merge-for-php)

PDF Merge library for PHP.

Install with composer:

`composer require jurosh/pdf-merge`

Should add dependency:

```
"jurosh/pdf-merge": "^2.0"
```

Highlights
----------

[](#highlights)

Pdf merging with modes portrait/landscape.

Tested in Laravel4 &amp; Laravel5 framework (but still can be used without any framework as standalone utility).

Usage
-----

[](#usage)

```
// Autoload composer classses...

// and now we can use library
$pdf = new \Jurosh\PDFMerge\PDFMerger;

// add as many pdfs as you want
$pdf->addPDF('path/to/source/file.pdf', 'all', 'vertical')
  ->addPDF('path/to/source/file1.pdf', 'all')
  ->addPDF('path/to/source/file2.pdf', 'all', 'horizontal');

// call merge, output format `file`
$pdf->merge('file', 'path/to/export/dir/file.pdf');
```

That's it!

Enjoy and leave star if you like it :)

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity59

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

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

Every ~767 days

Total

4

Last Release

1923d ago

Major Versions

0.1.0 → 1.0.02015-08-04

1.0.0 → 2.0.02018-08-14

PHP version history (2 changes)0.1.0PHP &gt;=5.3.0

2.0.0PHP &gt;=5.6.20

### Community

Maintainers

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

---

Top Contributors

[![jurosh](https://avatars.githubusercontent.com/u/1630137?v=4)](https://github.com/jurosh "jurosh (25 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (1 commits)")[![morrislaptop](https://avatars.githubusercontent.com/u/67807?v=4)](https://github.com/morrislaptop "morrislaptop (1 commits)")[![sebastian-serfe](https://avatars.githubusercontent.com/u/11234528?v=4)](https://github.com/sebastian-serfe "sebastian-serfe (1 commits)")

---

Tags

pdfmerge

### Embed Badge

![Health badge](/badges/jurosh-pdf-merge/health.svg)

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

###  Alternatives

[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k83.4M564](/packages/mpdf-mpdf)[iio/libmergepdf

Library for merging multiple PDFs

40814.5M20](/packages/iio-libmergepdf)[atgp/factur-x

PHP library to manage your Factur-X / ZUGFeRD 2.0 PDF invoices files

153915.3k4](/packages/atgp-factur-x)[webklex/laravel-pdfmerger

Generic PDF merger for Laravel

1433.1M2](/packages/webklex-laravel-pdfmerger)[setasign/fpdi-protection

A FPDI compatible version of the FPDF\_Protection script.

324.4M2](/packages/setasign-fpdi-protection)[karriere/pdf-merge

A wrapper for the TCPDF class that provides an elegant API for merging PDFs

27692.2k1](/packages/karriere-pdf-merge)

PHPackages © 2026

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