Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Excel Bundle

Excel Bundle Laravel Package

tanur/excel-bundle

tanur/excel-bundle is a Laravel package for Excel import and export, wrapping PhpSpreadsheet with simple helpers to read, write, and download spreadsheet files. It streamlines common Excel tasks in Laravel applications with minimal setup and configuration.

View on GitHub
Deep Wiki
Context7

Symfony bundle to integrate phpoffice/phpspreadsheet library (https://github.com/PHPOffice/PhpSpreadsheet)

Frequently asked questions about Excel Bundle
Is tanur/excel-bundle a Laravel package or a Symfony bundle?
The package description identifies tanur/excel-bundle as a Symfony bundle that integrates phpoffice/phpspreadsheet, while the distribution blurb describes it as a Laravel package for Excel import and export. That difference matters because Symfony bundles and Laravel packages use different service registration and auto-discovery mechanisms. Before installing, check the repository's composer.json and service provider or bundle class to confirm which framework integration is actually shipped. The underlying PhpSpreadsheet functionality is the same either way.
How do I install tanur/excel-bundle in a Laravel application?
Install it with Composer using composer require tanur/excel-bundle, then confirm whether the package exposes a Laravel service provider or only a Symfony bundle class. If Laravel auto-discovery is supported, the provider should register automatically; otherwise you may need to add it manually to your application's provider list. Because the package metadata is mixed, verify the installation steps in the repository README before relying on it in production.
Which Laravel and PHP versions are supported by tanur/excel-bundle?
The provided package context does not list explicit Laravel or PHP version constraints, so you should inspect the composer.json require section before installing. PhpSpreadsheet itself has PHP version requirements that will also apply to this wrapper. Check the repository's release history and compatibility notes to confirm support for your Laravel and PHP versions.
How do I import an Excel file in Laravel using tanur/excel-bundle?
Use the package's PhpSpreadsheet wrapper to load the uploaded file, select the active worksheet, and iterate over rows to map cells into your application data. The exact helper method names should be confirmed from the repository source or README because the package excerpt does not document them. For typical Laravel imports, validate the uploaded file first, store it temporarily, and wrap the read operation in a service class or queued job.
How do I export and download an Excel file with tanur/excel-bundle in Laravel?
Create a PhpSpreadsheet workbook, populate the worksheet with your data, and use a writer such as Xlsx to generate the file. The package's helpers may simplify writing and downloading, but confirm the available API in the repository because the README excerpt is empty. In Laravel, return the generated file as a download response or store it on a configured disk for later retrieval.
Does tanur/excel-bundle require phpoffice/phpspreadsheet to be installed separately?
tanur/excel-bundle is described as an integration wrapper around phpoffice/phpspreadsheet, so PhpSpreadsheet is the core library doing the spreadsheet work. In most Composer packages of this type, the dependency is declared in composer.json and installed automatically. Verify the require section to see whether the PhpSpreadsheet version is pinned and whether you need to add it explicitly for direct use.
What configuration does tanur/excel-bundle need in Laravel?
The package blurb says it is designed for minimal setup and configuration, but the available context does not include a Laravel config file or publishable assets. Check the repository for a service provider, config file, or environment variables that control spreadsheet behavior. If the package is actually a Symfony bundle, Laravel configuration may require manual adaptation rather than standard config publishing.
Can tanur/excel-bundle handle large Excel files without running out of memory?
The package wraps PhpSpreadsheet, which typically loads spreadsheet data into memory, so large files can still hit PHP memory limits regardless of the wrapper. For big imports, consider read filters, chunked processing, cell caching, or streaming formats and run the work in queued jobs. For exports, generate files in batches or use a streaming writer if the package supports one. Test with realistic file sizes before production use.
How do I test Excel import and export with tanur/excel-bundle in Laravel?
Use Laravel's storage fakes and test fixtures to provide small spreadsheet files, then assert that your import service maps rows correctly. For exports, call your controller or service and assert the response is a download with the expected filename and content type, or inspect the generated file on a fake disk. Keep tests focused on your mapping and response logic rather than PhpSpreadsheet internals.
What are the alternatives to tanur/excel-bundle for Excel import and export in Laravel?
The most common Laravel-focused alternative is maatwebsite/excel, which provides import and export classes, queued imports, and download helpers. You can also use phpoffice/phpspreadsheet directly for full control or a streaming library such as openspout for very large files. Compare maintenance activity, Laravel version support, and memory behavior before choosing tanur/excel-bundle for a new project.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console