edbizarro/bi-extract

v0.1.2 2018-05-18 14:50 UTC

README

BI - Extract

Extract data from sources

code-example.png

Build Status StyleCI LIcense 68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246656462697a6172726f25324662692d657874726163742e7376673f747970653d736d616c6c

Default Extractors

Csv

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);
}

forthebadge