japseyz / pdf-renderer
PDF Renderer
1.2.1
2024-11-22 20:54 UTC
Requires
- php: ^8.1
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- nunomaduro/collision: ^7.9|^8.1
- orchestra/testbench: ^8.0
- roave/security-advisories: dev-latest
Suggests
- api2pdf/api2pdf.php: For generating PDFs using api2pdf
- barryvdh/laravel-snappy: For generating PDFs using wkhtmltopdf
- spatie/browsershot: For generating PDFs using puppeteer
- typesetsh/typesetsh: For generating PDFs using typeset.sh
- yeslogic/prince-php-wrapper: For generating PDFs using PrinceXML
- dev-main
- 1.2.1
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/composer/league/commonmark-2.6.0
- dev-dependabot/composer/laravel/framework-10.48.23
- dev-dependabot/composer/symfony/http-foundation-6.4.14
- dev-dependabot/composer/symfony/process-6.4.14
This package is auto-updated.
Last update: 2024-12-10 01:15:40 UTC
README
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.