Download the PHP package goodby/csv without Composer
On this page you can find all versions of the php package goodby/csv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package csv
Short Description CSV import/export library
License MIT
Homepage https://github.com/goodby/csv
Informations about the package csv
Goodby, CSV
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 5.3.2 or later
- mbstring
Installation
Install composer in your project:
Create a composer.json
file in your project root:
Install 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.
All versions of csv with dependencies
ext-mbstring Version *