Extract data from sources
The Csv extractor uses generator class to avoid consume excessive memory.
<?php
/**
* Example CSV
*
* name,email
* John Doe,johndoe@example.org
*/
$result = (new CsvExtractor)->extract('PATH/TO/CSV');
foreach ($result as $row) {
// var_dump($row);
}
You can install the package via composer:
composer require edbizarro/bi-extract