Download the PHP package atik/laravel-pdf-excel without Composer
On this page you can find all versions of the php package atik/laravel-pdf-excel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atik/laravel-pdf-excel
More information about atik/laravel-pdf-excel
Files in atik/laravel-pdf-excel
Package laravel-pdf-excel
Short Description Enterprise-grade hybrid Laravel PDF package with ultra-fast large-table PDF generation and full Bangla font support.
License MIT
Informations about the package laravel-pdf-excel
Laravel PDF Excel
Enterprise-grade hybrid Laravel document generation package supporting PDF, Excel, and CSV output with ultra-fast large-table generation and full Bangla font support.
Overview
laravel-pdf-excel uses a hybrid engine architecture to solve the classic memory-exhaustion problem when generating huge documents in PHP:
| Format | Engine | Best For |
|---|---|---|
mPDF, Browsershot, FastAPI + ReportLab |
Styled HTML, invoices, reports, massive tables | |
| Excel | PhpSpreadsheet |
.xlsx exports with styled headers and auto-sized columns |
| CSV | Native PHP | Lightweight tabular data, data migrations |
Features
- Laravel 8+ Compatible: Works with Laravel 8, 10, 11, and 12.
- Hybrid PDF Architecture: Best of both worlds (PHP for styles, Python for massive data).
- Automatic Engine Switching:
PdfExcel::auto()handles the PDF engine switching for you. - Excel & CSV Support: Export tabular data to
.xlsxor.csvwith the same fluent API. - Queue & Async Support: Generate massive documents in the background.
- Bangla Font Support: Built-in support for Noto Sans Bengali and SolaimanLipi.
Installation
1. Install the Laravel Package
Publish the configuration and (optionally) the Python service:
2. Run the Python Microservice (PDF only)
You can run the Python microservice locally or via Docker.
Via Docker:
Via Uvicorn (Local):
Don't forget to put your Bangla .ttf fonts in python-service/fonts/!
Usage Examples
PDF — Standard View (mPDF)
Perfect for invoices or certificates.
PDF — Automatic Engine (Table)
Automatically switches to Python if rows > 5000.
PDF — Async / Background Generation
For 50k+ rows, queue it!
Excel Export
CSV Export
Async Excel/CSV
Configuration
See config/laravel-pdf-excel.php to configure:
auto_threshold: Number of rows to trigger the Python engine.python_engine.api_url: URL of your deployed FastAPI service.excel_engine.author: Author metadata for .xlsx files.csv_engine.delimiter,csv_engine.include_bom: CSV formatting options.- Queues, disks, and mPDF margins.
All versions of laravel-pdf-excel with dependencies
illuminate/support Version ^8.0|^10.0|^11.0|^12.0
illuminate/contracts Version ^8.0|^10.0|^11.0|^12.0
mpdf/mpdf Version ^8.2
spatie/browsershot Version ^4.0|^5.0
phpoffice/phpspreadsheet Version ^1.29