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

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

alexanderpavlov/pdfmerger
=========================

PDFMerger for PHP

1.0.5(6y ago)024.2k↓25%1LGPL-3.0-or-laterPHPPHP &gt;=5.2.0

Since Jan 5Pushed 6y agoCompare

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

READMEChangelog (1)DependenciesVersions (6)Used By (1)

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

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~373 days

Total

5

Last Release

2293d ago

### Community

Maintainers

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

---

Top Contributors

[![alexanderpavlov](https://avatars.githubusercontent.com/u/3829470?v=4)](https://github.com/alexanderpavlov "alexanderpavlov (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/alexanderpavlov-pdfmerger/health.svg)

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