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

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

konnco/pdf-merge
================

PHP PDF Merger

2.2.3(4y ago)0182.0k—6%MITPHPPHP &gt;=5.6.20

Since Dec 7Pushed 4y agoCompare

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

READMEChangelog (2)Dependencies (2)Versions (7)Used By (0)

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

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

PDF Merge library for PHP.

*Forked from *

Install with composer:

`composer require konnco/pdf-merge`

Should add dependency:

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

Highlights
----------

[](#highlights)

Pdf merging with modes portrait/landscape or automatic mode.

Tested in Laravel 7 &amp; Laravel 8 framework.

Usage
-----

[](#usage)

```
// Autoload composer classses...

// and now we can use library
$pdf = new \Konnco\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', 'automatic')
  ->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

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 75.8% 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 ~493 days

Recently: every ~557 days

Total

6

Last Release

1712d 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/d7b07b029d69157969d6701d1742f1526a062e51674720a928f29db0623fb05b?d=identicon)[ijalnasution](/maintainers/ijalnasution)

---

Top Contributors

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

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