PHPackages                             lucasromanojf/laravel5-pdf - 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. lucasromanojf/laravel5-pdf

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

lucasromanojf/laravel5-pdf
==========================

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

1.0.0(11y ago)1272.2k6MITPHPPHP &gt;=5.3.0

Since Feb 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lucasromanojf/laravel5-pdf)[ Packagist](https://packagist.org/packages/lucasromanojf/laravel5-pdf)[ RSS](/packages/lucasromanojf-laravel5-pdf/feed)WikiDiscussions master Synced today

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

Laravel 5 HTML 2 PDF
====================

[](#laravel-5-html-2-pdf)

[![Latest Stable Version](https://camo.githubusercontent.com/dbd57d18e75a6fb9d96430deada534a93e58354ec928540ddf125bba88180cbe/68747470733a2f2f706f7365722e707567782e6f72672f6c75636173726f6d616e6f6a662f6c61726176656c352d7064662f762f737461626c652e737667)](https://packagist.org/packages/lucasromanojf/laravel5-pdf) [![Total Downloads](https://camo.githubusercontent.com/2abc21a6d7518e95a2ccc37362a0d860bb8856d8707ff2e4ba5cd1811a97058a/68747470733a2f2f706f7365722e707567782e6f72672f6c75636173726f6d616e6f6a662f6c61726176656c352d7064662f646f776e6c6f6164732e737667)](https://packagist.org/packages/lucasromanojf/laravel5-pdf) [![Latest Unstable Version](https://camo.githubusercontent.com/85558c4f0442cd6f6e6e7bc153098ba32c15675e12d156bfecdd37e04b92cf1d/68747470733a2f2f706f7365722e707567782e6f72672f6c75636173726f6d616e6f6a662f6c61726176656c352d7064662f762f756e737461626c652e737667)](https://packagist.org/packages/lucasromanojf/laravel5-pdf) [![License](https://camo.githubusercontent.com/44cf5217d1fcd21efcc32cadefb295f58f99c775c3294790343a0ac6df1d80b8/68747470733a2f2f706f7365722e707567782e6f72672f6c75636173726f6d616e6f6a662f6c61726176656c352d7064662f6c6963656e73652e737667)](https://packagist.org/packages/lucasromanojf/laravel5-pdf)

A simple [Laravel 5](http://www.laravel.com/) service provider for including the [wkhtmltopdf](http://code.google.com/p/wkhtmltopdf/) library.

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

[](#installation)

The Laravel PDF Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `lucasromanojf/laravel5-pdf` package in your project's `composer.json`.

```
{
    "require": {
        "lucasromanojf/laravel5-pdf": "1.0.*"
    }
}
```

#### Note (you must also include wkhtmltopdf binaries)

[](#note-you-must-also-include-wkhtmltopdf-binaries)

**32-bit systems**

```
{
    "require": {
        "h4cc/wkhtmltopdf-i386": "*"
    }
}
```

**64-bit systems**

```
{
    "require": {
        "h4cc/wkhtmltopdf-amd64": "*"
    }
}
```

You can include both of these if you need.

Configuration
-------------

[](#configuration)

To use the PDF Service Provider, you must register the provider when bootstrapping your Laravel application.

Create the `config/laravel-pdf.php` configuration file.

In the `config/laravel-pdf.php` file:

**32-bit systems**

```
return array(
	'bin' => base_path() . '/vendor/h4cc/wkhtmltopdf-i386/bin/wkhtmltopdf-i386'
)
```

**64-bit systems**

```
return array(
	'bin' => base_path() . '/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64'
)
```

Find the `providers` key in your `config/app.php` and register the Service Provider.

```
    'providers' => array(
        // ...
        'Ignited\Pdf\PdfServiceProvider',
    )
```

Find the `aliases` key in your `app/config/app.php` and add the AWS facade alias.

```
    'aliases' => array(
        // ...
        'PDF'			  => 'Ignited\Pdf\Facades\Pdf'
    )
```

Usage
-----

[](#usage)

In `routes.php`

```
Route::get('/', function() {
	$pdf = PDF::make();
	$pdf->addPage('Hello World');
	$pdf->send();
});
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

4159d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60546d05cd76c8b84f92d0081b1bf99471509435804cb15ef48bce067c7891e3?d=identicon)[lucasromanojf](/maintainers/lucasromanojf)

---

Top Contributors

[![lucasromanojf](https://avatars.githubusercontent.com/u/3661610?v=4)](https://github.com/lucasromanojf "lucasromanojf (13 commits)")[![alexw23](https://avatars.githubusercontent.com/u/1505496?v=4)](https://github.com/alexw23 "alexw23 (3 commits)")

---

Tags

laravelpdfwkhtmltopdflaravel5

### Embed Badge

![Health badge](/badges/lucasromanojf-laravel5-pdf/health.svg)

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

###  Alternatives

[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k26.5M51](/packages/barryvdh-laravel-snappy)[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.4k99.4M384](/packages/barryvdh-laravel-dompdf)[rockett/weasyprint

A feature-rich WeasyPrint wrapper for generating PDFs from HTML and CSS, with support for PDF/A, PDF/UA, attachments, and optional Laravel integration.

30224.7k](/packages/rockett-weasyprint)[wemersonjanuario/laravelpdf

Another HTML to PDF Converter for Laravel

2913.0k1](/packages/wemersonjanuario-laravelpdf)

PHPackages © 2026

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