PHPackages                             kajamaki/pdfmerger - 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. kajamaki/pdfmerger

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

kajamaki/pdfmerger
==================

PDFMerger for PHP

1.0.4(7y ago)011LGPLPHPPHP &gt;=5.2.0

Since Jan 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kajamaki/PDFMerger)[ Packagist](https://packagist.org/packages/kajamaki/pdfmerger)[ Docs](https://github.com/rguedes/PDFMerger)[ RSS](/packages/kajamaki-pdfmerger/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (0)

\#PDFMerger for PHP (PHP 5/Laravel Compatible)

Original written by  port to PHP 5 by

Laravel Compatible
------------------

[](#laravel-compatible)

I have made some changes to make PHPMerger compatible for Laravel 4

### Example Usage

[](#example-usage)

```
$pdf = new \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
```

###  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

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 65% 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 ~365 days

Total

4

Last Release

2685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66157297710f1a52611b96dc79199c8988a7e4e3afeada2369ce5f01204966a4?d=identicon)[kajamaki](/maintainers/kajamaki)

---

Top Contributors

[![rguedes](https://avatars.githubusercontent.com/u/1434822?v=4)](https://github.com/rguedes "rguedes (13 commits)")[![mohamed-elouadifi](https://avatars.githubusercontent.com/u/17864714?v=4)](https://github.com/mohamed-elouadifi "mohamed-elouadifi (3 commits)")[![gilenoranna](https://avatars.githubusercontent.com/u/1637826?v=4)](https://github.com/gilenoranna "gilenoranna (2 commits)")[![chbbc](https://avatars.githubusercontent.com/u/44181666?v=4)](https://github.com/chbbc "chbbc (1 commits)")[![timdiels1](https://avatars.githubusercontent.com/u/7079398?v=4)](https://github.com/timdiels1 "timdiels1 (1 commits)")

---

Tags

phppdf

### Embed Badge

![Health badge](/badges/kajamaki-pdfmerger/health.svg)

```
[![Health](https://phpackages.com/badges/kajamaki-pdfmerger/health.svg)](https://phpackages.com/packages/kajamaki-pdfmerger)
```

###  Alternatives

[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[pontedilana/php-weasyprint

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

761.1M7](/packages/pontedilana-php-weasyprint)[daandesmedt/phpheadlesschrome

A PHP wrapper for using Google Chrome Headless mode. Convert URL or HTML to a PDF / screenshot. Easy to use and OOP interfaced.

92233.1k](/packages/daandesmedt-phpheadlesschrome)[kartik-v/mpdf

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

39328.4k1](/packages/kartik-v-mpdf)[kiwilan/php-ebook

PHP package to read metadata and extract covers from eBooks, comics and audiobooks.

3414.6k1](/packages/kiwilan-php-ebook)[renatio/dynamicpdf-plugin

October HTML to PDF converter using dompdf library.

3113.4k3](/packages/renatio-dynamicpdf-plugin)

PHPackages © 2026

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