PHPackages                             svikramjeet/laravel-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. svikramjeet/laravel-pdf

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

svikramjeet/laravel-pdf
=======================

Provides the HTML2PDF functionality using the wkhtmltopdf library for laravel 5

1.0.2(12y ago)09MITPHPPHP &gt;=5.3.0

Since Oct 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/svikramjeet/laravel-pdf)[ Packagist](https://packagist.org/packages/svikramjeet/laravel-pdf)[ RSS](/packages/svikramjeet-laravel-pdf/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (4)Used By (0)

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/85ff9d9e7934adb40f69072fdb2935aab621c74adbb8f18d84d7ded877c09a89/68747470733a2f2f706f7365722e707567782e6f72672f69676e697465642f6c61726176656c2d7064662f762f737461626c652e706e67)](https://packagist.org/packages/ignited/laravel-pdf)[![Total Downloads](https://camo.githubusercontent.com/600c159d44f6738a327f061cc6c360fd1527b157abac9035a76f8cb5d9f28562/68747470733a2f2f706f7365722e707567782e6f72672f69676e697465642f6c61726176656c2d7064662f646f776e6c6f6164732e706e67)](https://packagist.org/packages/ignited/laravel-pdf)

A simple [Laravel 4](http://four.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 `ignited/laravel-pdf` package in your project's `composer.json`.

```
{
    "require": {
        "ignited/laravel-pdf": "1.*"
    }
}
```

#### 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.

Publish the package configuration using Artisan.

```
php artisan config:publish ignited/laravel-pdf
```

Update your settings in the generated `app/config/packages/ignited/laravel-pdf` configuration file.

Uncomment the relevant binary.

**32-bit systems**

```
return array(
	# Uncomment for 32-bit systems
	'bin' => base_path() . '/vendor/h4cc/wkhtmltopdf-i386/bin/wkhtmltopdf-i386'
```

**64-bit systems**

```
return array(
	# Uncomment for 64-bit systems
	'bin' => base_path() . '/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64'
```

Find the `providers` key in your `app/config/app.php` and register the AWS 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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~30 days

Total

3

Last Release

4533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3041316617c7205d9059e217b8b2497f0cbad696d8d3431ba4877411813e5941?d=identicon)[svikramjeet](/maintainers/svikramjeet)

---

Top Contributors

[![alexw23](https://avatars.githubusercontent.com/u/1505496?v=4)](https://github.com/alexw23 "alexw23 (3 commits)")[![error-400-byte](https://avatars.githubusercontent.com/u/12164756?v=4)](https://github.com/error-400-byte "error-400-byte (2 commits)")

---

Tags

laravelpdfwkhtmltopdflaravel4

### Embed Badge

![Health badge](/badges/svikramjeet-laravel-pdf/health.svg)

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

###  Alternatives

[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

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

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[elibyy/tcpdf-laravel

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

3542.7M5](/packages/elibyy-tcpdf-laravel)[nitmedia/wkhtml2pdf

Html 2 Pdf - using wkhtml2pdf, work on 32bit and 64 bit linux + MacOS

117300.3k1](/packages/nitmedia-wkhtml2pdf)[lucasromanojf/laravel5-pdf

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

1271.8k](/packages/lucasromanojf-laravel5-pdf)[cangelis/l4pdf

Yet another HTML to PDF Converter for Laravel4

548.2k](/packages/cangelis-l4pdf)

PHPackages © 2026

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