PHPackages                             koerel/pdfunite - 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. koerel/pdfunite

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

koerel/pdfunite
===============

A php wrapper for pdfunite

0.1.3(8y ago)5129.6k—9.1%1GPL-3.0+PHPPHP &gt;=7.1

Since Nov 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/koerel/pdfunite)[ Packagist](https://packagist.org/packages/koerel/pdfunite)[ RSS](/packages/koerel-pdfunite/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

A PHP wrapper for pdfunite
==========================

[](#a-php-wrapper-for-pdfunite)

[![StyleCI](https://camo.githubusercontent.com/27d00d737fcbeebf793d37bec9d64ae3e0bd77dc75971f2636153c04bfa0d60f/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131303337363336322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/110376362)

[![Build Status](https://camo.githubusercontent.com/7c9c97561b5c3e0a1f1600caf7bcbe7568ff72520bf56b63d25381bcf83b7d2a/68747470733a2f2f7472617669732d63692e6f72672f6b6f6572656c2f706466756e6974652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/koerel/pdfunite)

pdfunite is part of the [poppler](https://poppler.freedesktop.org/) PDF library. It is a command-line tool use to join PDF files. This library provides a PHP wrapper around pdfunite.

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

[](#installation)

run `composer require koerel/pdfunite`

Usage
-----

[](#usage)

The join method accepts any number of input files, the last parameter is the output file.

```
$unite = new Koerel\PdfUnite\PdfUnite();
$unite->join('file1.pdf', 'file2.pdf', 'output.pdf');

```

If the pdfunite-binary is not in the $PATH you can pass it's path to the constructor.

```
$unite = new Koerel\PdfUnite\PdfUnite('path/to/pdfunite');
$unite->join('file1.pdf', 'file2.pdf', 'output.pdf');

```

To get the result as a string you can chain the output() method

```
$unite = new Koerel\PdfUnite\PdfUnite();
$pdfData = $unite->join('file1.pdf', 'file2.pdf', 'output.pdf')->output();

```

To download the resulting PDF, you can chain the download() method

```
$unite = new Koerel\PdfUnite\PdfUnite();
$unite->join('file1.pdf', 'file2.pdf', 'output.pdf')->download();

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

6

Last Release

3109d ago

PHP version history (3 changes)0.0.1PHP ^5.6

0.1.0PHP &gt;=5.6

0.1.2PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/447f84fecd8f1cd0a485ab5236d1a3f927a00a3a9619400d99e6963f2b62cc07?d=identicon)[koerel](/maintainers/koerel)

---

Top Contributors

[![koerel](https://avatars.githubusercontent.com/u/7442504?v=4)](https://github.com/koerel "koerel (28 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/koerel-pdfunite/health.svg)

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

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

426.1M30](/packages/setasign-tfpdf)[aspera/xlsx-reader

Spreadsheet reader library for XLSX files

52742.2k5](/packages/aspera-xlsx-reader)

PHPackages © 2026

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