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

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

byggmann/php-pdf-merge
======================

PHP PDF Merger

3.0.0(4y ago)071MITPHPPHP &gt;=5.6.20

Since Dec 7Pushed 4y agoCompare

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

READMEChangelog (1)Dependencies (2)Versions (6)Used By (0)

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

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

PDF Merge library for PHP.

Install with composer:

`composer require byggmann/php-pdf-merge`

Highlights
----------

[](#highlights)

Pdf merging where orientation is set automatically.

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

Usage
-----

[](#usage)

```
// Autoload composer classes...

// 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') // sets orientation automatically, "all" pages default
  ->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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 86.2% 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 ~651 days

Total

5

Last Release

1566d ago

Major Versions

0.1.0 → 1.0.02015-08-04

1.0.0 → 2.0.02018-08-14

2.1.0 → 3.0.02022-01-26

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/f5662a4290ff2ba7065c94ace47f892f83d969906531c75927a328deb579b30d?d=identicon)[byggmann](/maintainers/byggmann)

---

Top Contributors

[![jurosh](https://avatars.githubusercontent.com/u/1630137?v=4)](https://github.com/jurosh "jurosh (25 commits)")[![byggmann](https://avatars.githubusercontent.com/u/50108257?v=4)](https://github.com/byggmann "byggmann (1 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/byggmann-php-pdf-merge/health.svg)

```
[![Health](https://phpackages.com/badges/byggmann-php-pdf-merge/health.svg)](https://phpackages.com/packages/byggmann-php-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)[jurosh/pdf-merge

PHP PDF Merger

1522.2M5](/packages/jurosh-pdf-merge)[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)

PHPackages © 2026

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