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
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.4.* | 4.8.*
This package is not auto-updated.
Last update: 2025-10-04 03:20:15 UTC
README
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