Download the PHP package daandekker/laravel-chrome-pdf without Composer
On this page you can find all versions of the php package daandekker/laravel-chrome-pdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download daandekker/laravel-chrome-pdf
More information about daandekker/laravel-chrome-pdf
Files in daandekker/laravel-chrome-pdf
Download daandekker/laravel-chrome-pdf
More information about daandekker/laravel-chrome-pdf
Files in daandekker/laravel-chrome-pdf
Vendor daandekker
Package laravel-chrome-pdf
Short Description Generate PDFs in Laravel using headless Chrome. Full CSS support, no Node.js required.
License MIT
Homepage https://github.com/DaanDekker/laravel-chrome-pdf
Package laravel-chrome-pdf
Short Description Generate PDFs in Laravel using headless Chrome. Full CSS support, no Node.js required.
License MIT
Homepage https://github.com/DaanDekker/laravel-chrome-pdf
Please rate this library. Is it a good library?
Informations about the package laravel-chrome-pdf
Laravel Chrome PDF
Generate PDFs in Laravel using headless Chrome. Full CSS support including Tailwind CSS, Flexbox, Grid, and modern web features.
Features
- Full CSS support (Flexbox, Grid, Tailwind v4)
- Real browser rendering engine
- System fonts + Google Fonts
- JavaScript support
- Headers & footers with page numbers
- Queued PDF generation
Requirements
- PHP 8.2+
- Laravel 11.0+ or 12.0+
- Chrome/Chromium installed on the server
Installation
Optionally publish the configuration:
Configuration
Set the Chrome path in your .env:
Common Chrome paths:
- Linux:
/usr/bin/chromium,/usr/bin/chromium-browser,/usr/bin/google-chrome - macOS:
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome - Windows:
C:\Program Files\Google\Chrome\Application\chrome.exe - Docker (Alpine):
/usr/bin/chromium-browser
Configuration File
Usage
Basic Usage
Output Methods
Page Settings
Headers & Footers
Available footer/header variables: pageNumber, totalPages, date, title, url
Wait for JavaScript
Queued Generation
For large PDFs or background processing:
Styling Tips
Using Tailwind CSS
Include Tailwind via CDN in your Blade template:
Page Breaks
Print-Specific Styles
API Reference
Pdf Facade Methods
| Method | Description |
|---|---|
view(string $view, array $data = []) |
Create PDF from Blade view |
html(string $html) |
Create PDF from HTML string |
PdfBuilder Methods
| Method | Description |
|---|---|
format(string $format) |
Set page format (A4, Letter, etc.) |
orientation(string $orientation) |
Set orientation (portrait/landscape) |
landscape() |
Set landscape orientation |
portrait() |
Set portrait orientation |
margins(int $top, $right, $bottom, $left) |
Set margins in mm |
margin(int $margin) |
Set uniform margins |
scale(float $scale) |
Set scale (0.1 - 2.0) |
printBackground(bool $print = true) |
Enable/disable CSS backgrounds |
header(string $html) |
Set header HTML |
footer(string $html) |
Set footer HTML |
waitFor(int $ms) |
Wait for JS (milliseconds) |
save(string $path) |
Save to file path |
store(string $path, ?string $disk) |
Save to storage disk |
output() |
Get PDF as string |
download(string $filename) |
Return download response |
stream(string $filename) |
Return inline response |
License
MIT License. See LICENSE for details.
All versions of laravel-chrome-pdf with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/support Version ^11.0|^12.0
illuminate/view Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/view Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0
The package daandekker/laravel-chrome-pdf contains the following files
Loading the files please wait ...