2017 © Pedro Peláez
 

library core

DataFlow Core project

image

dataflow/core

DataFlow Core project

  • Saturday, March 29, 2014
  • by vincenttouzet
  • Repository
  • 2 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DataFlow Core

Scrutinizer Code Quality Code Coverage Build Status, (*1)

DataFlow is a library based on sonata/exporter to aggregate or merge multiple data sources and export to multiple writers., (*2)

Usage

<?php

$handler = new \DataFlow\Handler();
// add sources
$source1 = new \DataFlow\Source\CsvSourceIterator('data1.csv');
$source2 = new \DataFlow\Source\CsvSourceIterator('data2.csv');
$handler->addSource($source1);
$handler->addSource($source2);
// add writer
$writer = new \DataFlow\Source\CsvWriter('aggregate.csv');
$handler->addWriter($writer);

// aggregate sources
$handler->aggregate();
// or merge based on primary column
// $handler->merge('primary_column_name');

You can also add mappers and [filters][3], (*3)

The Versions

29/03 2014

dev-master

9999999-dev

DataFlow Core project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincent Touzet