> For the complete documentation index, see [llms.txt](https://php-etl.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://php-etl.gitbook.io/docs/runningprocesses.md).

# Running Processes

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

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

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

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