Definition
from_excel(Path|string $path) : ExcelExtractor Read from various data sources.
Shape and optimize for your needs.
Store and secure in one of many available data sinks.
from_excel(Path|string $path) : ExcelExtractor <?php
declare(strict_types=1);
use function Flow\ETL\Adapter\Excel\DSL\from_excel;
use function Flow\ETL\DSL\{data_frame, to_stream};
require __DIR__ . '/vendor/autoload.php';
data_frame()
->read(from_excel(
__DIR__ . '/input/dataset.xlsx',
))
->collect()
->write(to_stream(__DIR__ . '/output.txt', truncate: false))
->run();