New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

japseyz/pdf-renderer

PDF Renderer
5,894
Install
composer require japseyz/pdf-renderer
Latest Version:1.3.0
PHP:^8.1
Laravel:10 – 13
License:MIT
Last Updated:Aug 23, 2026
Links: GitHub  ·  Packagist
Maintainer: JapSeyz

PDF Renderer

Installation

You can install the package via composer:

composer require japseyz/pdf-renderer

You can publish the config file with:

php artisan vendor:publish --tag="pdf-renderer-config"

This is the contents of the published config file:

return [
    // Possible values are:
    // 'browsershot', 'api2pdf'
    'service' => 'browsershot'
];

Usage

 $renderer = PDFRenderer::view(
    'documents.invoice',
    [
        'client'          => $client,
    ]
);

return response($renderer->render(), 200, [
    'Content-Type'        => 'application/pdf',
    'Content-Disposition' => 'attachment; filename="invoice.pdf"',
]);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

japseyz/livewire-calendar

Laravel Livewire calendar component

62 0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607

Version History

Version Released PHP Laravel License
1.3.0 ^8.1 MIT
1.2.2 ^8.1 MIT
1.2.1 ^8.1 MIT
1.2.0 ^8.1 MIT
1.1.2 ^8.1 MIT