PHPackages                             singularity/pdf-merger - 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. singularity/pdf-merger

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

singularity/pdf-merger
======================

PDF merger

1.0.2(6y ago)05.8kBSD-3-ClausePHP

Since Mar 12Pushed 6y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

PDF Merger
==========

[](#pdf-merger)

[![Latest Version](https://camo.githubusercontent.com/18b54a3326667ac0b8ba42f4f945cb5dcd960d4c7fb362808811139fbf7c7f65/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f73696e67756c61726974792d69732f7064662d6d65726765722e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/singularity-is/pdf-merger/tags)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/02fc5aa04ad3d936dda817bd532ca480a40c2a391e88f85be30176cd5ea15d13/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73696e67756c61726974792f7064662d6d65726765722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/singularity/pdf-merger)[![Coverage Status](https://camo.githubusercontent.com/cfcb5b10d4a28dce091d124d85101a475a31608a47756d95cbfadaa28f3f8d6a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73696e67756c61726974792f7064662d6d65726765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/singularity/pdf-merger/code-structure)[![Quality Score](https://camo.githubusercontent.com/58e4a6bc512ef0055f7b98cee6e5ac0dc0f496c95bbf27492e2ac46d82114b2b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73696e67756c61726974792f7064662d6d65726765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/singularity/pdf-merger)[![Total Downloads](https://camo.githubusercontent.com/9ec661ee2b6d96ae902b0a8940c5adfba9b4ac768d2a8dd2406bde647f827122/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696e67756c61726974792f7064662d6d65726765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/singularity/pdf-merger)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require singularity/pdf-merger:~1.0
```

or add

```
"singularity/pdf-merger": "~1.0"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

```
include 'PDFMerger.php';

$pdf = new PDFMerger;

$pdf->addPDF('samplepdfs/one.pdf', '1, 3, 4') specific pages
	->addPDF('samplepdfs/two.pdf', '1-2') range of pages
	->addPDF('samplepdfs/three.pdf', 'all') all pages
	->merge('file', 'samplepdfs/TEST2.pdf');

```

```
//REPLACE 'file' WITH 'browser', 'download', 'string', or 'file' for output options
//You do not need to give a file path for browser, string, or download - just the name.

```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Nikola Radovic](https://github.com/dzona)
- [All Contributors](https://github.com/singularity-is/pdf-merger/graphs/contributors)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

[![](https://camo.githubusercontent.com/b2386d186828d39e5f401fe1a45928ff42670d97e6bf663f60ec822c111ac9fd/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f38363633643438656136303933643263653931373231376365656361316363322e706e67)](https://singularity.is)
*\#InventTomorrow*
[www.singularity.is](https://www.singularity.is)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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 ~0 days

Total

3

Last Release

2258d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4145d6805fbd31552d7fc6c045a158f3031e1090a83d2e176493adae346e13ca?d=identicon)[dzona](/maintainers/dzona)

---

Top Contributors

[![dzona](https://avatars.githubusercontent.com/u/1159689?v=4)](https://github.com/dzona "dzona (5 commits)")[![danijel1998](https://avatars.githubusercontent.com/u/55586751?v=4)](https://github.com/danijel1998 "danijel1998 (4 commits)")

---

Tags

pdfTCPDFfpdisingularitysingularity solution

### Embed Badge

![Health badge](/badges/singularity-pdf-merger/health.svg)

```
[![Health](https://phpackages.com/badges/singularity-pdf-merger/health.svg)](https://phpackages.com/packages/singularity-pdf-merger)
```

###  Alternatives

[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M473](/packages/tecnickcom-tcpdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[setasign/fpdi

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.

1.2k142.4M231](/packages/setasign-fpdi)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[setasign/fpdi-protection

A FPDI compatible version of the FPDF\_Protection script.

324.3M2](/packages/setasign-fpdi-protection)[bithost-gmbh/pdfviewhelpers

This is a TYPO3 CMS extension that provides various Fluid ViewHelpers to generate PDF documents.

45242.7k2](/packages/bithost-gmbh-pdfviewhelpers)

PHPackages © 2026

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