Download the PHP package handcraftedinthealps/goodby-csv without Composer
On this page you can find all versions of the php package handcraftedinthealps/goodby-csv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download handcraftedinthealps/goodby-csv
More information about handcraftedinthealps/goodby-csv
Files in handcraftedinthealps/goodby-csv
Package goodby-csv
Short Description CSV import/export library
License MIT
Homepage https://github.com/handcraftedinthealps/goodby-csv
Informations about the package goodby-csv
Goodby, CSV
This is a fork of goodby-csv to add support for PHP 8.1.
What is "Goodby CSV"?
Goodby CSV is a highly memory efficient, flexible and extendable open-source CSV import/export library.
Features
1. Memory Management Free
This library was designed for low memory usage. It will not accumulate all the rows in the memory. The importer reads a CSV file and executes a callback function line by line.
2. Multibyte support
This library supports mulitbyte input/output: for example, SJIS-win, EUC-JP and UTF-8.
3. Ready to Use for Enterprise Applications
Goodby CSV is fully unit-tested. The library is stable and ready to be used in large projects like enterprise applications.
Requirements
- PHP 7.2 or later
Installation
Install the package via composer:
Documentation
Configuration
Import configuration:
Export configuration:
Unstrict Row Consistency Mode
By default, Goodby CSV throws StrictViolationException
when it finds a row with a different column count to other columns. In the case you want to import such a CSV, you can call Interpreter::unstrict()
to disable row consistency check at import.
rough.csv:
Examples
Import to Database via PDO
user.csv:
Import from TSV (tab separated values) to array
temperature.tsv:
Export from array
Export from database via PDO
Export with CallbackCollection
Export in Symfony2 action
License
Csv is open-sourced software licensed under the MIT License - see the LICENSE file for details
Contributing
We works under test driven development.
Checkout master source code from github:
Install components via composer:
Run phpunit:
Acknowledgement
Credits are found within composer.json file.