Download the PHP package motekar/laravel-pdf without Composer
On this page you can find all versions of the php package motekar/laravel-pdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download motekar/laravel-pdf
More information about motekar/laravel-pdf
Files in motekar/laravel-pdf
Package laravel-pdf
Short Description Create PDFs in Laravel apps
License MIT
Homepage https://github.com/motekar/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.
Unlike spatie/laravel-pdf this package does not require nodejs and puppeteer, it uses chrome-php/chrome instead.
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:
Documentation
Installation
You can install the package via composer:
Under the hood this package uses Google Chrome or Chromium to generate PDFs. You'll need to install any of these browsers on your system.
Usage
This package supports almost every feature of Spatie's Laravel PDF package. For detailed usage documentation, we recommend referring to the comprehensive guide available on Spatie's documentation site. The usage patterns and methods are largely compatible, allowing you to leverage the extensive documentation provided by Spatie for this package as well.
Testing
For running the testsuite, 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
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
- Fauzie Rofi
- 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
chrome-php/chrome Version ^1.11
illuminate/contracts Version ^10.0|^11.0
spatie/laravel-package-tools Version ^1.16.1
spatie/temporary-directory Version ^2.2.1