8000 GitHub - czproject/csv-iterator: Simple reading of CSV files.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

czproject/csv-iterator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CsvIterator

Build Status Downloads this Month Latest Stable Version License

Simple reading of CSV files.

Donate

Installation

Download a latest package or use Composer:

composer require czproject/csv-iterator

CsvIterator requires PHP 5.6 or later.

Usage

id,name
1,Gandalf The White
$iterator = new CzProject\CsvIterator\CsvIterator('/path/to/file.csv');

// optional:
$iterator->setDelimiter(',');
$iterator->setEnclosure('"');
$iterator->setEscape('\\');
$iterator->setEncoding('UTF-8');

while (($row = $iterator->fetch()) !== NULL) {
	echo $row['id']; // prints '1'
	echo $row['name']; // prints 'Gandalf The White'
}

License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/

About

Simple reading of CSV files.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published
0