> 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/transformers/renamecolumns.md).

# Rename Columns

Rename columns.

```php
$etl->transform('rename_columns', $options);
```

## Options

### Columns (required)

Columns that will be transformed. The `key` is the old name and the `value` is the new column name.

| Type  | Default value |
| ----- | ------------- |
| array | `[]`          |

```php
$options = ['columns' => [
    'email_address' => 'email',
]];
```
