Extracts
Read from various data sources.
Transforms
Shape and optimize for your needs.
Loads
Store and secure in one of many available data sinks.
Examples:
composer.json
{
"name": "flow-php/examples",
"description": "Flow PHP - Examples",
"license": "MIT",
"type": "library",
"require": {
"flow-php/etl": "1.x-dev"
},
"minimum-stability": "dev"
}
code.php
<?php
declare(strict_types=1);
use function Flow\Types\DSL\type_string;
require __DIR__ . '/vendor/autoload.php';
function userInput() : mixed
{
return 'this-is-user-input';
}
function generateOutput(string $string) : void
{
}
$input = userInput();
$string = type_string()->assert($input);
// at this point static analysis tools knows that $string is type string
generateOutput($string);