rap2hpoutre/fast-excel
Fast, memory-efficient Excel/CSV/ODS import/export for Laravel using Spout. Export Eloquent models or collections to XLSX/CSV/ODS with custom column mapping, and download from controllers. Import files to collections, configure CSV options, or transform rows into DB inserts.
Cost-Effective Scalability for Data Exports: Enable high-performance, memory-efficient exports for SaaS platforms or enterprise applications processing >100K rows without server upgrades. Reduces cloud costs by 30–50% by minimizing memory usage (2MB vs. 123MB peak). Critical for freemium tiers or bulk operations (e.g., financial reports, user activity logs).
Developer Productivity & Consistency: Standardize Excel/CSV operations with a 3-line API, reducing onboarding time by 40% and eliminating technical debt from fragmented libraries. Enables self-service data exports for non-technical teams, cutting IT support tickets by 60%.
Performance-Based Feature Rollouts: Implement gradual rollouts for performance-critical features using FastExcel for high-volume exports while maintaining Laravel Excel for advanced use cases:
if (config('features.fast_exports')) {
return (new FastExcel(Order::all()))->download('orders.xlsx');
}
Build vs. Buy Decision: Adopt FastExcel if:
Non-Technical User Empowerment: Enable business teams to self-serve data exports via admin panels or API endpoints, reducing IT dependency and accelerating data-driven decisions.
Adopt FastExcel if:
Look elsewhere if:
"FastExcel is a high-impact, low-risk solution for scaling data operations without infrastructure overhead. Key benefits:
"FastExcel is a Spout-powered, Laravel-first solution for high-performance Excel/CSV operations. Key advantages:
✅ Blazing Fast: 2.76s exports for 10K rows (vs. 11.56s for Laravel Excel). 2MB peak memory vs. 123MB.
✅ Simple API: 3 lines of code to export a model or collection.
✅ Memory-Friendly: Chunked exports with yield to handle >1M rows without memory issues.
✅ Flexible Input/Output: Supports XLSX, ODS, CSV, and custom delimiters/encodings.
✅ Laravel Integration: Works seamlessly with Eloquent models, Collections, and facades.
✅ No Dependencies: Lightweight wrapper around Spout, avoiding PhpSpreadsheet bloat.
Perfect for high-volume exports, batch processing, and cost-sensitive data workflows."
"FastExcel enables data-driven features without engineering bottlenecks. Use cases:
How can I help you explore Laravel packages today?