This repo is READ ONLY, in order to contribute to Flow PHP project, please open PR against flow monorepo.
Changes merged to monorepo are automatically propagated into sub repositories.
ETL Adapter that provides memory safe XML support for ETL.
composer require flow-php/etl-adapter-xml:1.x@dev
Memory safe XML extractor
xml/simple_items.xml
<root>
<items>
<item><id>1</id></item>
<item><id>2</id></item>
<item><id>3</id></item>
<item><id>4</id></item>
<item><id>5</id></item>
<item><id>6</id></item>
</items>
</root>
<?php
(new Flow())
->read(XML::from_file(__DIR__ . '/xml/simple_items.xml', 'root/items/item'))
->fetch()
Above code will generate Rows with 5 entries like the one below:
<?php
Row::create(
Entry::array('row', [
'item' => [
'id' => [
'@value' => 1
]
]
])
)