PHPackages                             rtablada/pdf-output - 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. rtablada/pdf-output

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

rtablada/pdf-output
===================

218PHP

Since May 2Pushed 12y ago2 watchersCompare

[ Source](https://github.com/rtablada/pdf-outputter)[ Packagist](https://packagist.org/packages/rtablada/pdf-output)[ RSS](/packages/rtablada-pdf-output/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel PhantomJS PDF Generator
-------------------------------

[](#laravel-phantomjs-pdf-generator)

Generating PDFs is terrible business. Plus, why learn a new library when you already know HTML and CSS?

This package gives you the freedom to build downloadable PDF responses from the skills you already know.

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

[](#installation)

To use this package you will need to have both PhantomJS and the `phantom` npm module installed in your project. To accomplish this, in the root of your project run `npm install phantomjs` and `npm install phantom`.

Then in your `composer.json` file add `"rtablada/pdf-output": "dev-master"` to your `require` block.

Laravel Installation
--------------------

[](#laravel-installation)

To further install this in Laravel, add `'Rtablada\PdfOutput\PDFOutputterServerProvider',` to your providers list. This will register the binding `pdf-output.response-outputter` in the IoC container. Optionally, you can add `'PDF' => 'Rtablada\PdfOutput\PDFFacade',` to your facades.

To build a PDF Downloadable response from a View, simply run `PDF::buildPDFDownloadFromView('viewName', $data)`. This will accept the same arguments as when using `View::make`.

If you feel that facades aren't your bag, then feel free to use this without facades like this:

```
$outputter = app('pdf-output.response-outputter');
return $outputter->buildPDFDownloadFromView('viewName', $data)
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![rtablada](https://avatars.githubusercontent.com/u/2532004?v=4)](https://github.com/rtablada "rtablada (1 commits)")

### Embed Badge

![Health badge](/badges/rtablada-pdf-output/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[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.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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