Skip to content

kothman/csv-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSVParser

Build Status Latest Stable Version Total Downloads

A CSV Parser for PHP.

Install

Via Composer

$ composer require kothman/csv-parser

Usage

$parser = new Kothman\CSVParser("file.csv");
while($row = $parser->row()) {
    echo implode(", ", $row);
}

$parser->rewind();
$parser->row();

$anotherParser = new Kothman\CSVParser("https://some.csv.file.csv", $delimeter = '.');
echo $anotherParser->toDictionary();
echo $anotherParser->countColumns();
echo $anotherParser->countRows();

Testing

$ composer test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages