/rector

Rector configurations for Contao

Primary LanguagePHP

Rector configurations for Contao

This package includes the Rector configuration for Contao.

Installation

You can install the package with Composer:

composer require contao/rector

Usage

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

<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([__DIR__.'/vendor/contao/rector/config/contao.php']);

    // Adjust the configuration according to your needs.
};

Then run the script like this:

vendor/bin/rector

License

Contao is licensed under the terms of the LGPLv3.

Getting support

Visit the support page to learn about the available support options.