rap2hpoutre/fast-excel
Fast Excel import/export for Laravel powered by Spout. Quickly export Eloquent models or collections to XLSX/ODS/CSV, customize column mapping, and download from controllers. Import files to collections, configure CSV options, or persist rows directly to the database.
// Export to S3
Storage::disk('s3')->put('exports/users.xlsx', (new FastExcel(User::all()))->toStream());
Route::get('/export', function () {
return (new FastExcel(Report::all()))->download('report.xlsx');
});
setEndOfLineCharacter in v3.0.0. Teams using these must migrate or use an older version (v2.x).setEndOfLineCharacter (removed in v3.0.0).// Before (Laravel Excel)
Excel::download(new UserExport, 'users.xlsx');
// After (FastExcel)
return (new FastExcel(User::all()))->download('users.xlsx');
| Component | Compatibility Notes |
|---|---|
| Laravel | 9.x, 10.x (PHP 8.0+). Avoid Laravel 8.x with FastExcel v3.x. |
| PHP | 8.0–8.3 (tested). PHP 7.1–7.4 require v2.x. |
| Spout | v3.x (updated in FastExcel v3.0.0). |
| Database | Works with any PDO-supported DB (MySQL, PostgreSQL, etc.). No ORM coupling. |
| Storage | Local, S3, FTP, etc. (via Laravel Storage). |
| CSV Delimiters | Supports custom delimiters/enclosures (e.g., ; for European CSVs). |
SheetCollection).How can I help you explore Laravel packages today?