Classes for reading and writing CSV files (includes RFC 4180 compliant classes)
The AjglCsv component allows you to read and write CSV files.
There are currently two different implementations for the reader and writer classes:
- An implementation using the native fgetcsv and fputcsv functions
- An implementation compatible with the RFC 4180
The simplest way to use this library is to create a Ajgl\Csv\Csv instance with:
$csv = Ajgl\Csv\Csv::create();
By default, the library uses the native f??tcsv functions. If you want to read
or write RFC 4180 compatible files, you
should set the default reader and writer types to
To create a new CSV reader or writer, you should call:
$reader = $csv->createReader('/path/to/input.csv'); $writer = $csv->createWriter('/path/to/output.csv');
If you need to integrate these library into your Symfony Framework app, you can install the AjglCsvBundle
This component is under the MIT license. See the complete license in the LICENSE file.
- Travis CI:
- Poser Latest Stable Version:
- Poser Latest Unstable Version
- Poser Total Downloads
- Poser Monthly Downloads
- Poser Daily Downloads
- Poser License
- Scrutinizer Quality
- Scrutinizer Code Coverage
- SensionLabs Insight Quality
- VersionEye Dependency Status
AjglCsv is an ajgarlag initiative.
Issues and feature requests are tracked in the Github issue tracker.