A CSV Parser for PHP.
Via Composer
$ composer require kothman/csv-parser
$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();
$ composer test