mll-lab / rector-config
Shared rules for Rector
Installs: 31 006
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/mll-lab/rector-config
Requires
- php: ^8.3
 - rector/rector: ^1.2.7 || ^2.0.10
 
Requires (Dev)
- ergebnis/composer-normalize: ^2.13
 - laravel/framework: ^11 || ^12
 - mll-lab/php-cs-fixer-config: ^5
 - phpstan/extension-installer: ^1
 - phpstan/phpstan: ^1.12 || ^2.1
 
README
Shared configuration for rector
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.