Download the PHP package alifahmmed/pdfbuilder without Composer
On this page you can find all versions of the php package alifahmmed/pdfbuilder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alifahmmed/pdfbuilder
More information about alifahmmed/pdfbuilder
Files in alifahmmed/pdfbuilder
Package pdfbuilder
Short Description Laravel 12 package: generate PDF via headless chromium or wkhtmltopdf without Node.js
License MIT
Homepage https://github.com/s-m-alif-ahmmed/PdfBuilder
Informations about the package pdfbuilder
PdfBuilder — Laravel PDF Generator without Node.js
PdfBuilder is a Laravel package for generating high-quality PDFs from HTML using wkhtmltopdf or headless Chromium — without requiring Node.js.
It supports Bootstrap, Tailwind CSS, and any modern HTML/CSS styling.
✨ Features
- Convert HTML to PDF directly in Laravel
- No Node.js required
- Supports Bootstrap and TailwindCSS
- Works with
wkhtmltopdfbinary (bundled or system-installed) - Simple Facade API (
PdfBuilder::htmlToPdf()) - Configurable binary path, temp storage, and extra arguments
- Publish binary to your Laravel project for easy server deployment
- Works on Laravel 9, 10, 11, and 12
📦 Installation
Require the package via Composer:
⚙️ Configuration
-
Publish the config file and binary:
-
Set up your .env variables:
- Configuration file (config/pdfbuilder.php):
🚀 Basic Usage
Generate a PDF from HTML and return it as a download in a Laravel controller:
🎯 Advanced Usage
-
Set Custom Page Options
-
Inline Local Images Automatically
- Store PDF to Disk
🛠 Requirements
- PHP >= 8.1
- Laravel 9.x | 10.x | 11.x | 12.x
- wkhtmltopdf binary (system-installed or bundled via resources/bin)
🐛 Troubleshooting
-
Binary not found Ensure wkhtmltopdf is installed or the .env path is correct.
-
Permission denied Make sure the binary is executable:
- Fonts/CSS not applied Use absolute paths or the Helpers::inlineImages() method to embed assets.
📜 License
This package is open-sourced under the MIT license.