flow-php/etl-loader

PHP ETL - Loaders

1.x-dev 2021-10-06 07:29 UTC

This package is auto-updated.

Last update: 2021-10-25 09:10:46 UTC


README

Minimum PHP Version

Description

Set of ETL generic Loaders

Development

In order to install dependencies please, launch following commands:

composer install

Loader - Transformer

<?php

use Flow\ETL\Loader\CallbackLoader;

$loader = new TransformerLoader(
    new Transformer(),
    new Loader(),
);

Loader - Callback

<?php

use Flow\ETL\Loader\CallbackLoader;

$loader = new CallbackLoader(
    function (Rows $rows) use (&$data) : void {
        $data = $rows->toArray();
    }
));

Run Tests

In order to execute full test suite, please launch following command:

composer build

It's recommended to use pcov for code coverage however you can also use xdebug by setting XDEBUG_MODE=coverage env variable.