Download the PHP package spatie/laravel-pdf without Composer
On this page you can find all versions of the php package spatie/laravel-pdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spatie/laravel-pdf
More information about spatie/laravel-pdf
Files in spatie/laravel-pdf
Package laravel-pdf
Short Description Create PDFs in Laravel apps
License MIT
Homepage https://github.com/spatie/laravel-pdf
Informations about the package laravel-pdf
Create PDFs in Laravel apps
This package provides a simple way to create PDFs in Laravel apps. Under the hood it uses Chromium to generate PDFs from Blade views. You can use modern CSS features like grid and flexbox to create beautiful PDFs.
Here's a quick example:
This will render the Blade view pdfs.invoice
with the given data and save it as a PDF file.
You can also return the PDF as a response from your controller:
You can use also test your PDFs:
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Documentation
All documentation is available on our documentation site.
Testing
For running the testsuite, you'll need to have Puppeteer installed. Pleaser refer to the Browsershot requirements here. Usually npm -g i puppeteer
will do the trick.
Additionally, you'll need the pdftotext
CLI which is part of the poppler-utils package. More info can be found in in the spatie/pdf-to-text readme. Usually brew install poppler-utils
will suffice.
Finally run the tests with:
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
- Freek Van der Herten
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-pdf with dependencies
illuminate/contracts Version ^10.0|^11.0
spatie/browsershot Version ^4.0
spatie/laravel-package-tools Version ^1.16.1
spatie/temporary-directory Version ^2.2.1