PHPackages                             atomsk/csv-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. atomsk/csv-manager

ActiveLibrary[File &amp; Storage](/categories/file-storage)

atomsk/csv-manager
==================

PHP library for efficient management of large CSV files.

v1.3.0(6mo ago)11771[1 PRs](https://github.com/JoseAntonioCadavalBueno/csv-manager/pulls)MITPHPPHP &gt;=8.0

Since Jul 9Pushed 3mo agoCompare

[ Source](https://github.com/JoseAntonioCadavalBueno/csv-manager)[ Packagist](https://packagist.org/packages/atomsk/csv-manager)[ RSS](/packages/atomsk-csv-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

📦 CSV Manager
=============

[](#-csv-manager)

[![PHP](https://camo.githubusercontent.com/2f6f9af2e917cbf5786673e8e4ed8d0d9b29be6131327a992063e69136a93411/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d626c7565)](https://camo.githubusercontent.com/2f6f9af2e917cbf5786673e8e4ed8d0d9b29be6131327a992063e69136a93411/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d626c7565)[![Pipeline Status](https://camo.githubusercontent.com/c79b4d7b34cbfc09bd51c8d338f6b3ad30aae18dddfc37043cf1bda18a164060/68747470733a2f2f6769746c61622e636f6d2f6a6361646176616c6275656e6f2f6373762d6d616e616765722f6261646765732f6d61696e2f706970656c696e652e737667)](https://camo.githubusercontent.com/c79b4d7b34cbfc09bd51c8d338f6b3ad30aae18dddfc37043cf1bda18a164060/68747470733a2f2f6769746c61622e636f6d2f6a6361646176616c6275656e6f2f6373762d6d616e616765722f6261646765732f6d61696e2f706970656c696e652e737667)[![Downloads](https://camo.githubusercontent.com/7c03bdd1ef379d90061ed3f1fa39944fef6da1c3d080e6119cef6776d454c1db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61746f6d736b2f6373762d6d616e61676572)](https://camo.githubusercontent.com/7c03bdd1ef379d90061ed3f1fa39944fef6da1c3d080e6119cef6776d454c1db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61746f6d736b2f6373762d6d616e61676572)[![Latest Version](https://camo.githubusercontent.com/0f937d3882f57656f68b70dbe59bba41a42526e45e369492b2e15b98e6eccf85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61746f6d736b2f6373762d6d616e61676572)](https://camo.githubusercontent.com/0f937d3882f57656f68b70dbe59bba41a42526e45e369492b2e15b98e6eccf85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61746f6d736b2f6373762d6d616e61676572)

PHP library for efficient management of large CSV files. Designed for projects in Laravel, Symfony, or native PHP, with a simple and customizable interface.

> ## ⚠️ Deprecated Features
>
> [](#️-deprecated-features)
>
> Some features and configurations have been deprecated and will be removed in future versions. Please update your code accordingly to ensure compatibility.
>
> ### 1. Allowed\_extensions as a string:
>
> [](#1-allowed_extensions-as-a-string)
>
> Starting from version 1.3, the `allowed_extensions` variable in the `csv-manager.php` configuration file must now be defined as an array instead of a string.
>
> **old (Deprecated):**
>
> ```
> 'allowed_extensions' => 'csv,txt'
> ```
>
>
>
> **New (recommended):**
>
> ```
> 'allowed_extensions' => ['csv', 'txt']
> ```
>
>
>
> ### 2. Using CsvManager\\Csv facade:
>
> [](#2-using-csvmanagercsv-facade)
>
> Starting from version 1.1, the namespace of the `Csv` facade has changed.
>
> **old (Deprecated):**
>
> ```
> use CsvManager\Csv;
> ```
>
>
>
> **New (recommended):**
>
> ```
> use CsvManager\Facades\Csv;
> ```
>
>
>
> ### 3. Symfony environment support:
>
> [](#3-symfony-environment-support)
>
> Starting from the version 1.3, support for the symfony environment has been deprecated. This is because the `SymfonyCsv.php` and `NativeCsv.php` integration are very similar and will be merged in future versions.
>
> **Old (Deprecated):**
>
> ```
> 'env_config' => 'symfony'
> ```
>
>
>
> **New (recommended):**
>
> ```
> 'env_config' => 'native' // or 'laravel' if you prefer
> ```

🚀 How to install
----------------

[](#-how-to-install)

You just need to install it like any php library with composer.

```
    composer require atomsk/csv-manager
```

⚙️ Configuration
----------------

[](#️-configuration)

The library allows you to customize its behavior through the configuration file `csv-manager.php`.
You can generate a custom configuration for your environment with:

```
    ./vendor/bin/generate-csv-manager-config
```

The file looks like this:

```
