kothman/csv-parser

A CSV parser for PHP

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/kothman/csv-parser

1.0.1 2016-07-18 19:49 UTC

This package is not auto-updated.

Last update: 2025-10-04 03:20:15 UTC


README

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