Home » File Formats » File_CSV
Read and write of CSV files
This package is unmaintained.
Download latest release 1.0.0 (archived versions might be outdated)
License: New BSD
Description
Read and write of CSV files as well as discovering the format the CSV file is in.
Supports headers and is excel compatible, i.e. ="0004" outputs as 0004 (only read wise)
For more information on CSV: http://rfc.net/rfc4180.html
Maintainers
- Helgi Þormar (dufuz) — lead, active
- Tomas V.V. Cox (cox) — developer, inactive
- Cipriano Groenendal (cipri) — developer, active
Dependencies
Required
- PHP (>= 4.3.0)
- PEAR Installer (>= 1.7.0)
- File (>= 1.4.0)
- pcre (extension)
Releases
- 1.0.0 (stable, 2011-03-18)
Release notes
License: New BSD
* Fixed Bug #15123: Broken CSV unit tests [dufuz]
* Fixed Bug #15233: discoverFormat finds wrong separator [dufuz]
* Fixed Bug #18049: discoverFormat bug, Find all seps that are within qoutes [dufuz]
* Fixed Bug #18111: discoverFormat: Quote not detected in short lines [dufuz]
* Fixed Bug #18358: Headers incorrectly being applied to quoted rows only [dufuz] - 1.0.0alpha1 (alpha, 2008-10-26)
Release notes
License: New BSD
* Split File_CSV from File into it's own package
* Change license to New BSD
* File_CSV::unquote now takes in an array and a string (string being the old way)
Passing in an array of fields, for example a whole line.
* Double quotes is now the default quoting character when people don't specify which quoting character to use* Fix Bug #5257: File_CSV: delimiter problem if first field is empty [dufuz]
* Fix Bug #14118: Error with quoted fields and separators [dufuz]
* Fix Bug #11526: DiscoverFormat returns wrong nr of fields [izi]
* Fix Bug #11892: File_CSV performance severely hurt [dufuz]
* Fix Bug #14030: File_CSV::write() does not correctly quote field values [dufuz, walter]
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #3935 | Assigned | Req | 2005-03-23 | File_CSV::read should optionally ignore field count | |
| #5257 | Closed | Bug | 2005-08-31 | File_CSV: delimiter problem if first field is empty | |
| #5652 | Bogus | Bug | 2005-10-10 | Static $config causes error with several CSV-objects | |
| #7742 | Open | Req | 2006-05-28 | CSV string parsing | |
| #11526 | Closed | Bug | 1.3.0 | 2007-07-05 | DiscoverFormat returns wrong nr of fields |
| #11892 | Closed | Bug | 2007-08-22 | File_CSV performance severely hurt | |
| #12275 | Open | Req | CVS | 2007-10-19 | Allow using file pointers directly |
| #12276 | Open | Req | CVS | 2007-10-19 | allow php:// files |
| #12277 | Closed | Bug | CVS | 2007-10-19 | No release yet |
| #12278 | Closed | Doc | CVS | 2007-10-19 | no docs for File_CSV |
| #12485 | Closed | Bug | 2007-11-20 | Triple quotes handled incorrectly | |
| #13231 | Duplicate | Bug | 2008-02-27 | File_CSV::readQuoted parse error on empty field in first line | |
| #13332 | Bogus | Bug | 2008-03-07 | Fails to correctly read quoted values followed by a comma. | |
| #14030 | Closed | Bug | 2008-05-30 | File_CSV::write() does not correctly quote field values | |
| #14117 | Duplicate | Bug | 2008-06-10 | Error with quoted fields and separators | |
| #14118 | Closed | Bug | 2008-06-10 | Error with quoted fields and separators | |
| #15123 | Closed | Bug | 2008-11-21 | Broken CSV unit tests | |
| #15233 | Closed | Bug | 1.0.0alpha1 | 2008-12-04 | discoverFormat finds wrong separator |
| #18014 | Bogus | Req | SVN | 2010-10-30 | Show image in excel sheet |
| #18049 | Closed | Bug | 1.0.0alpha1 | 2010-11-12 | discoverFormat bug, Find all seps that are within qoutes |
| #18111 | Closed | Bug | 1.0.0alpha1 | 2010-12-10 | discoverFormat: Quote not detected in short lines |
| #18358 | Closed | Bug | 1.0.0alpha1 | 2011-03-10 | Headers incorrectly being applied to quoted rows only |
| #18765 | Bogus | Bug | 1.0.0 | 2011-08-29 | While Loop Stopping Short |
| #19041 | Closed | Bug | 2011-11-15 | remove error_reporting (for PEAR QA team) | |
| #19255 | Open | Bug | 1.0.0 | 2012-01-29 | bug13332.phpt fails with PHP 5.4 |
| #19510 | Open | Req | 1.0.0 | 2012-07-17 | field escape and row terminated elements added to discoverFormat returned array |