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

Csv Bundle Laravel Package

intriro/csv-bundle

Intriro CSV Bundle offers a simple toolkit for reading and writing CSV files in PHP applications. It helps with common CSV operations such as parsing rows, configuring delimiters, and exporting data, making bulk import and export tasks easier to implement without custom parsing code.

View on GitHub
Deep Wiki
Context7

Integration of the goodby/csv library into Symfony.

Frequently asked questions about Csv Bundle
What is intriro/csv-bundle used for?
intriro/csv-bundle is a Symfony bundle that integrates the goodby/csv library into Symfony applications. It provides a simple toolkit for reading and writing CSV files, including parsing rows, setting delimiters, and exporting data for bulk import or export tasks. It is not a standalone CSV engine; the core behavior comes from goodby/csv.
How do I install intriro/csv-bundle with Composer?
Install it with Composer using composer require intriro/csv-bundle. In a Symfony app you then register the bundle in your kernel or bundles configuration according to your Symfony version. Because it is a Symfony bundle, Laravel does not auto-discover it; Laravel users should generally install and use goodby/csv directly instead.
Does intriro/csv-bundle work with Laravel?
Not natively. intriro/csv-bundle is built as a Symfony bundle, so its service registration and configuration are Symfony-specific rather than Laravel package discovery. In Laravel you can still use the underlying goodby/csv library directly or wrap it in your own service. Do not expect the bundle's Symfony configuration to work unchanged in a Laravel app.
How do I configure CSV delimiters and enclosure characters?
Delimiter and enclosure behavior is handled by the underlying goodby/csv reader and writer configuration. You configure those options where you instantiate or define the CSV reader/writer service, then pass the same settings for reading and writing when consistency matters. Check the goodby/csv documentation for the exact option names supported by your installed version.
Can I use intriro/csv-bundle to import large CSV files?
It can help with large imports, but the bundle itself does not guarantee streaming or low memory use. For large files, verify that the underlying reader streams rows rather than loading the entire file, and process rows in batches. In production, test with realistic file sizes and consider chunked imports plus database transactions.
How do I read CSV rows into arrays or objects?
Reading is delegated to goodby/csv, which lets you iterate CSV rows and fetch each record. You can then map each row to an array or your own DTO/object in application code. The bundle does not impose a full ORM mapping layer, so object hydration remains your responsibility.
How do I export or write CSV files with intriro/csv-bundle?
You write CSV by using the goodby/csv writer through the bundle's Symfony integration. Configure delimiter and enclosure options to match your target format, open the destination file or stream, and write rows one at a time. For bulk exports, flush or close the writer properly and validate output with a sample file.
Is intriro/csv-bundle compatible with Symfony 4, 5, 6, or 7?
Compatibility depends on the bundle release and the Symfony version it declares in Composer. There is no single answer for Symfony 4, 5, 6, or 7 without checking the package constraints and repository activity. Review the composer.json requirements and test your target Symfony version before upgrading.
How should I test CSV import and export code?
Test CSV code with fixture files that cover quoted fields, embedded delimiters, newlines, and empty values. Use temporary files or streams and assert the parsed rows or generated output rather than only checking that no exception was thrown. For Laravel apps using goodby/csv directly, keep the CSV adapter behind a small service you can unit test.
What are alternatives to intriro/csv-bundle for Laravel?
For Laravel, the League CSV package is a common alternative and is often a better fit than a Symfony bundle. You can also use goodby/csv directly, or use Laravel Excel if you need spreadsheet formats and Laravel-specific integrations. Choose based on maintenance, streaming needs, and whether you need XLSX support.
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