PHPackages                             contao/rector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. contao/rector

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

contao/rector
=============

Rector configurations for Contao

1.3.1(6mo ago)015.9k↓83.7%120LGPL-3.0-or-laterPHPPHP ^8.1

Since Sep 27Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/contao/rector)[ Packagist](https://packagist.org/packages/contao/rector)[ Fund](https://to.contao.org/donate)[ RSS](/packages/contao-rector/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (10)Used By (20)

Rector configurations for Contao
================================

[](#rector-configurations-for-contao)

[![](https://github.com/contao/rector/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/contao/rector/actions)[![](https://camo.githubusercontent.com/8bc8229c2e5e5466b66247d06375d4e23c22f8f496d063366710aa6c2c28a019/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e74616f2f726563746f722e737667)](https://packagist.org/packages/contao/rector)[![](https://camo.githubusercontent.com/5fe764121260fb8fc9e8be772ed271b912dd3d575a5e3fd4f6f32c447462a6f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e74616f2f726563746f722e737667)](https://packagist.org/packages/contao/rector)

This package includes the [Rector](https://github.com/rectorphp/rector) configuration for [Contao](https://contao.org).

Installation
------------

[](#installation)

Add the package to your Contao installation via Composer:

```
composer require contao/rector --dev
```

Usage
-----

[](#usage)

Create a file named `rector.php` in the root directory of your project.

```
