PHPackages                             msmahon/laravel-qpdf-php-wrapper - 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. msmahon/laravel-qpdf-php-wrapper

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

msmahon/laravel-qpdf-php-wrapper
================================

A Laravel service provider for the msmahon/qpdf-php-wrapper package.

v1.1.2(2y ago)17.9k2MITPHPPHP ^8.1

Since Feb 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/msmahon/laravel-qpdf-php-wrapper)[ Packagist](https://packagist.org/packages/msmahon/laravel-qpdf-php-wrapper)[ Docs](https://github.com/msmahon/laravel-qpdf-php-wrapper)[ RSS](/packages/msmahon-laravel-qpdf-php-wrapper/feed)WikiDiscussions main Synced 1mo ago

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

laravel-qpdf-php-wrapper
========================

[](#laravel-qpdf-php-wrapper)

A Laravel service provider for the msmahon/qpdf-php-wrapper package.

Package Installation
--------------------

[](#package-installation)

```
copmoser require msmahon/laravel-qpdf-php-wrapper

```

Laravel
-------

[](#laravel)

Add the service provider to the providers array in config/app.php

```
Msmahon\laravel-qpdf-php-wrapper\ServiceProvider::class,

```

Add to your facades:

```
'Qpdf' => Msmahon\laravel-qpdf-php-wrapper\Facades\Qpdf.php,

```

Usage
-----

[](#usage)

```
// Get qpdf version
Qpdf::getQpdfVersion();

// Check if file is pdf
Qpdf::fileIsPdf($pathToFile);

// Get number of pages in a pdf
Qpdf::getNumberOfPages($pathToFile);

// Rotate range of files in a pdf
Qpdf::rotate($pathToFile, Msmahon\QpdfPhpWrapper\ENUMS\Rotation::RIGHT, '2-4');

// Trim pdf to page range
Qpdf::trimToRange($pathToFile, '4-z'); // "z" indicates end of file

// Copy range from pdf into a new pdf
Qpdf::copyPages($pathToFile, $pathToOutput, '1,3,5');

// Remove pages from a pdf
Qpdf::removePages($pathToFile, '2,4');

// Overlay a pdf on a range of pages
Qpdf::applyStamp($pathToFile, $fileToOverlay);

// Combine ranges from multiple files into a single pdf
$files = [
  [$pathOne, '1'],
  [$pathTwo, '4-7'],
  [$pathThree, '9-z'],
  // ...
];
Qpdf::combineRangesFromFiles($files, $pathToOutput);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

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

Total

4

Last Release

822d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d003a7ab0b4d412814fa9039532c606d06616b6e147ac4c932f5b4f3c6ea049?d=identicon)[msmahon](/maintainers/msmahon)

---

Top Contributors

[![msmahon](https://avatars.githubusercontent.com/u/6668279?v=4)](https://github.com/msmahon "msmahon (6 commits)")

---

Tags

laravelpdfqpdf

### Embed Badge

![Health badge](/badges/msmahon-laravel-qpdf-php-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/msmahon-laravel-qpdf-php-wrapper/health.svg)](https://phpackages.com/packages/msmahon-laravel-qpdf-php-wrapper)
```

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M274](/packages/barryvdh-laravel-dompdf)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

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

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

3542.7M5](/packages/elibyy-tcpdf-laravel)[lucasromanojf/laravel5-pdf

Provides the HTML2PDF functionality using the wkhtmltopdf library (Laravel 5)

1271.8k](/packages/lucasromanojf-laravel5-pdf)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1718.3k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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