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

Running Processes

To run an ETL process, you can chain the steps methods in the desired execution order and then call the run method:

$etl->extract(/* ... */)
    ->transform(/* ... */)
    ->load(/* ... */)
    ->run();

To run the process and return the resulting data as an array, you may use the toArray method:

$data = $etl->extract(/* ... */)
    ->transform(/* ... */)
    ->load(/* ... */)
    ->toArray();
PreviousHelpers

Last updated 6 years ago