PHP Classes
elePHPant
Icontem

CSV Reader: Parse a CSV file and its data rows

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-05-31 (13 years ago) RSS 2.0 feedStarStarStar 56%Total: 4,775 All time: 559 This week: 411Up
Version License Categories
csvreader 1.0GNU General Publi...Files and Folders
Description Author

This class can parse CSV files and extract the data in their rows implementing a Reader interface similar to what exists for Java.

It provides a line per line extraction for efficient processing.

Features :

- Support standard CSV features
- A cell containing special caracters must be surrounded by ".
- Inserting a " can be done throught escaping ( \" ) or preceding by another double quote ( "" )
- A cell with new line characters inside must be surrounded by double quote "

Name: Nicolas BUI <contact>
Classes: 1 package by
Country: France France
Age: ???
All time rank: 59928 in France France
Week rank: 749 Down25 in France France Up

Screenshots  
  • csv_sample.gif
  Files folder image Files  
File Role Description
Plain text file CSVReader.php Class the main CSVParser class
Plain text file FileReader.php Class a file reader class use with CSVReader to extract data from file
Plain text file FilterReader.php Class Parent class use by CSVReader
Plain text file Reader.php Class Top interface use by FileReader and CSVReader
Plain text file sample.csv Data Sample CSV data file from ferc.gov
Plain text file sample.php Example Sample use

 Version Control Unique User Downloads Download Rankings  
 0%
Total:4,775
This week:0
All time:559
This week:411Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1651
 
bug parse for values with comma
7 years ago (masted)
10%Star