mll-lab/rector-config

Shared rules for Rector

Maintainers

Details

github.com/mll-lab/rector-config

Installs: 30 841

Dependents: 4

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/mll-lab/rector-config

v3.1.1 2025-10-16 09:17 UTC

This package is auto-updated.

Last update: 2025-10-16 09:18:26 UTC


README

Shared configuration for rector

GitHub license Packagist Packagist

Installation

composer require --dev mll-lab/rector-config

Usage

In your rector.php:

+use function MLL\RectorConfig\config;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
+   config($rectorConfig);

    $rectorConfig->paths([
        ...
    ]);
    $rectorConfig->rule(...);
};

If the project is using Laravel, use laravel instead of config.