PHP ETL
  • Introduction
  • Getting Started
  • Extractors
    • Collection
    • CSV
    • Fixed Width
    • JSON
    • Query
    • Table
    • XML
  • Transformers
    • Convert Case
    • JSON Decode
    • JSON Encode
    • Rename Columns
    • Trim
    • Unique Rows
  • Loaders
    • Insert
    • Insert/Update
  • Helpers
  • Running Processes
Powered by GitBook
On this page
  • Options
  • Columns
  1. Extractors

Collection

Extracts data from any iterable item. It accepts arrays or traversables objects. The collection items must be associative arrays.

$etl->extract('collection', $iterable, $options);

Tip: Using generators will decrease memory usage.

Options

Columns

Columns from the iterable item that will be extracted.

Type

Default value

array

null

$options = ['columns' => ['id', 'name', 'email']];
PreviousExtractorsNextCSV

Last updated 6 years ago