The keys of the options are:
headerRowNumber - Header row number (default is 0, zero-based)
headers - Header array (default is empty array)
inputEncoding - Input encoding for data (CSV only, default is "UTF-8")
delimiter - Delimiter for data (CSV only, default is ',')
enclosure - Quote character for data (CSV only, default is '"')
escape - Escape character for data (CSV only, default is '\\')
activeSheet - Index of active sheet to read from (For PhpSpreadsheet only, default is null)
readOnly - If set to false, the reader take care of the spreadsheet formatting (slow) (For PhpSpreadsheet only, default is true)
maxRows - Maximum number of rows to read (For PhpSpreadsheet only, default is null)
offset - Skip a certain amount of items from the beginning (For OffsetFilter, default is 0)
limit - Process only specified amount of items (and skip the rest) (For OffsetFilter, default is null)
Example 1
The spreadsheet contains pure data only. Supply the header manually.
Example 2
Change input encoding, delimiter and enclosure for CSV file
Example 3
Use the workflow builder function to customize the workflow object for import, e.g. add a FilterStep to the workflow. The filter step determines whether the input data should be processed further. If any of the callables in the step returns false, the data will be skipped from processing.
For other built-in steps, see StepAggregator. You can also write your own steps.