japseyz/pdf-renderer is a Laravel package for pdf renderer.
It currently has 0 GitHub stars and 2.736 downloads on Packagist (latest version 1.2.2).
Install it with composer require japseyz/pdf-renderer.
Discover more Laravel packages by japseyz
or browse all Laravel packages to compare alternatives.
Last updated
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'
];
$renderer = PDFRenderer::view(
'documents.invoice',
[
'client' => $client,
]
);
return response($renderer->render(), 200, [
'Content-Type' => 'application/pdf',
'Content-Disposition' => 'attachment; filename="invoice.pdf"',
]);
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.