Download the PHP package atomsk/csv-manager without Composer
On this page you can find all versions of the php package atomsk/csv-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atomsk/csv-manager
More information about atomsk/csv-manager
Files in atomsk/csv-manager
Package csv-manager
Short Description PHP library for efficient management of large CSV files.
License MIT
Informations about the package csv-manager
📦 CSV Manager
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
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:
Starting from version 1.3, the
allowed_extensionsvariable in thecsv-manager.phpconfiguration file must now be defined as an array instead of a string.old (Deprecated):
New (recommended):
2. Using CsvManager\Csv facade:
Starting from version 1.1, the namespace of the
Csvfacade has changed.old (Deprecated):
New (recommended):
3. Symfony environment support:
Starting from the version 1.3, support for the symfony environment has been deprecated. This is because the
SymfonyCsv.phpandNativeCsv.phpintegration are very similar and will be merged in future versions.Old (Deprecated):
New (recommended):
🚀 How to install
You just need to install it like any php library with composer.
⚙️ 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:
The file looks like this:
🛠️ Example
The library can be used in two different ways: Using the Facade (static access) or using the Object-Oriented approach (non-static).
Using the Facade (recommended for simplicity)
For larger files, you can add custom functions that perform any process you want.
Using the Non-Static (Object-Oriented) approach
If you need more control or want to integrate the library deeply with your own dependency container, you can directly instantiate the integration classes.
Example with Native environment
Example with Laravel environment
Example with Symfony environment
⚠️ Deprecated since version 1.3 Symfony environment support will be removed in future versions. Prefer using the Native or Laravel environments.
Works with PHP 8.0, 8.1, 8.2, 8.3 and 8.4
🪪 License
MIT - Open source, free to use and modify.