Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 547 Bytes

introduction.rst

File metadata and controls

20 lines (14 loc) · 547 Bytes

Sonata exporter

Sonata exporter allows you to convert large amount of data from a source to an output format (most generally to a file) by streaming it (hence avoiding too much memory consumption).

Usage

// This can be any instance of SourceIteratorInterface
$source = new ArraySourceIterator([/* your data */]);

// This could be any format supported
$writer = new JsonWriter('php://output');

$handler = Handler::create($source, $writer);
$handler->export();