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)1522.2M↑23.6%35[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 1mo 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 93% of packages

Maintenance26

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

1877d 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.7k77.1M493](/packages/mpdf-mpdf)[iio/libmergepdf

Library for merging multiple PDFs

40813.6M13](/packages/iio-libmergepdf)[webklex/laravel-pdfmerger

Generic PDF merger for Laravel

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

A FPDI compatible version of the FPDF\_Protection script.

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

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

27566.8k1](/packages/karriere-pdf-merge)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

32157.4k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

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