edbizarro/bi-extract

Extract data from sources

v0.1.5 2018-07-11 02:37 UTC

README

BI - Extract

Extract data from sources

code-example.png

Build Status StyleCI LIcense 68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246656462697a6172726f25324662692d657874726163742e7376673f747970653d736d616c6c 68747470733a2f2f706f7365722e707567782e6f72672f656462697a6172726f2f62692d657874726163742f762f737461626c65 68747470733a2f2f706f7365722e707567782e6f72672f656462697a6172726f2f62692d657874726163742f646f776e6c6f616473

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

Installation

You can install the package via composer:

composer require edbizarro/bi-extract

forthebadge