PHPackages                             renderpdf-io/renderpdf-laravel - 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. renderpdf-io/renderpdf-laravel

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

renderpdf-io/renderpdf-laravel
==============================

Render and covert HTML to PDF using RenderPDF.io service, library for Laravel

1.0.0(1y ago)06MITPHPPHP ^8.1

Since Aug 3Pushed 1y agoCompare

[ Source](https://github.com/renderpdf-io/renderpdf-laravel)[ Packagist](https://packagist.org/packages/renderpdf-io/renderpdf-laravel)[ RSS](/packages/renderpdf-io-renderpdf-laravel/feed)WikiDiscussions main Synced today

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

Render HTML to PDF for Laravel - RenderPDF.io Laravel Driver
============================================================

[](#render-html-to-pdf-for-laravel---renderpdfio-laravel-driver)

[![Unit Test](https://github.com/renderpdf-io/renderpdf-laravel/actions/workflows/build.yml/badge.svg)](https://github.com/renderpdf-io/renderpdf-laravel/actions/workflows/build.yml)[![codecov](https://camo.githubusercontent.com/a4caaabd260e11324e9f98ea32771883009a37d71d706837bb455ac8a6b186f5/68747470733a2f2f636f6465636f762e696f2f67682f72656e6465727064662d696f2f72656e6465727064662d6c61726176656c2f67726170682f62616467652e7376673f746f6b656e3d48434b564859504d3250)](https://codecov.io/gh/renderpdf-io/renderpdf-laravel)

[![RenderPDF.io Cover](./.github/renderpdf-io-cover.png)](./.github/renderpdf-io-cover.png)

[RenderPDF.io](https://renderpdf.io) provides awesome &amp; developer-friendly APIs to convert HTML to PDF.

This is a Laravel package provides an easy integration with **RenderPDF.io**

Requirement
-----------

[](#requirement)

- PHP 8.1 and above
- Laravel 10 and above

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

[](#installation)

```
composer install renderpdf-io/renderpdf-laravel
```

Note: for Laravel 10 users, you need to install `GuzzleHTTP` too.

Add the `services.renderpdf-io.key` config into your `config/services.php` (required):

```
// config/services.php

return [
    'renderpdf-io' => [
        'key' => env('RENDER_PDF_IO_API_KEY'),
    ],
];
```

Usage
-----

[](#usage)

### Facade style

[](#facade-style)

Simply use the `RenderPdfIo` facade

```
use RenderPdfIo\RenderPdfIo;
use RenderPdfIo\Services\RenderPdfOptions;

public function renderPdf()
{
    $fileUrl = RenderPdfIo::render(new RenderPdfOptions(
        htmlContent: 'This is a new PDF',
    ));
}
```

### Dependency Injection style

[](#dependency-injection-style)

In case you want to use DI style, we got you:

```
use RenderPdfIo\Services\RenderPdfIoService;
use RenderPdfIo\Services\RenderPdfOptions;

class InvoiceController
{
    public function download(RenderPdfIoService $renderPdfService)
    {
        $fileUrl = $renderPdfService->render(new RenderPdfOptions(
            htmlContent: 'This is a new PDF using DI',
        ));
    }
}
```

See all the available options here: [RenderPdfOptions.php](./src/Services/RenderPdfOptions.php)

Contributing
------------

[](#contributing)

Thank you for your consideration to contribute to Laravel library of RenderPDF.io, please feel free to:

- Open an issue for bug reports.
- Submit a PR for improvements/enhancements.

License
-------

[](#license)

This library is free to use, under [MIT License](./LICENSE).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

700d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23478115?v=4)[Seth Phat](/maintainers/sethsandaru)[@sethsandaru](https://github.com/sethsandaru)

---

Top Contributors

[![sethsandaru](https://avatars.githubusercontent.com/u/23478115?v=4)](https://github.com/sethsandaru "sethsandaru (9 commits)")

---

Tags

html2pdfhtml2pdf-apihtmltopdfhtmltopdf-apilaravellaravel-librarypdfrender-pdflaravelhtml-to-pdflaravel-librarylaravel convert html to pdflaravel render html to pdfrenderpdfrenderpdf.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/renderpdf-io-renderpdf-laravel/health.svg)

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3991.8k](/packages/codewithdennis-larament)[bfinlay/laravel-excel-seeder

Seed the database with Laravel using Excel, XLSX, XLS, CSV, ODS, Gnumeric, XML, HTML, SLK files

3946.9k](/packages/bfinlay-laravel-excel-seeder)

PHPackages © 2026

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