Download the PHP package cleaniquecoders/dokufy without Composer
On this page you can find all versions of the php package cleaniquecoders/dokufy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleaniquecoders/dokufy
More information about cleaniquecoders/dokufy
Files in cleaniquecoders/dokufy
Package dokufy
Short Description Generate PDFs your way — Gotenberg, LibreOffice, or native PHP.
License MIT
Homepage https://github.com/cleaniquecoders/dokufy
Informations about the package dokufy
Dokufy
Generate PDFs your way — Gotenberg, LibreOffice, or native PHP.
A driver-based document generation and PDF conversion package for Laravel. Write code once, then swap between drivers via configuration — no code changes required.
Installation
Install the package via Composer:
Run the installation command to set up the package:
This will:
- Publish the configuration file
- Create the templates directory at
resources/templates - Create a sample HTML template
- Check driver availability and offer to install missing dependencies
Alternatively, you can manually publish the config file:
Configuration
The published config file (config/dokufy.php) contains all driver settings:
Usage
Basic HTML to PDF
Template to PDF
Template to DOCX
Streaming and Downloads
Blade Views to PDF
Using a Specific Driver
With Placeholdify Integration
Placeholder Syntax
Dokufy uses double curly braces for placeholders with flexible spacing:
All variations are supported and will be replaced with the corresponding data value.
Artisan Commands
Check Driver Status
Displays a table showing all drivers and their availability status.
Generate Documents via CLI
Available Drivers
phpword (default)
- Requirements:
phpoffice/phpword,dompdf/dompdf - Formats: HTML, DOCX
- Best for: Shared hosting, simple documents
gotenberg
- Requirements: Docker + Gotenberg container,
gotenberg/gotenberg-php - Formats: HTML, DOCX, XLSX, PPTX, ODT, Markdown
- Best for: Production, CI/CD, Kubernetes
libreoffice
- Requirements: LibreOffice binary installed
- Formats: HTML, DOCX, XLSX, PPTX, ODT
- Best for: Local development, traditional VPS
chromium
- Requirements: Node.js,
spatie/browsershot, Puppeteer - Formats: HTML only
- Best for: Pixel-perfect HTML rendering, Tailwind CSS
fake
- Requirements: None
- Formats: All
- Best for: Testing
Installing Driver Dependencies
Testing
Dokufy provides a fake driver for testing:
Run tests:
API Reference
Facade Methods
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
- Nasrul Hazim Bin Mohamad
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of dokufy with dependencies
illuminate/contracts Version ^10.0||^11.0||^12.0||^13.0
illuminate/http Version ^10.0||^11.0||^12.0||^13.0
illuminate/support Version ^10.0||^11.0||^12.0||^13.0
spatie/laravel-package-tools Version ^1.16