mll-lab / rector-config
Shared rules for Rector
Installs: 18 347
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- rector/rector: 0.15 - 2
Requires (Dev)
- ergebnis/composer-normalize: ^2.13
- mll-lab/php-cs-fixer-config: ^5
- phpstan/extension-installer: ^1
- phpstan/phpstan: ^1.12 || ^2.1
This package is auto-updated.
Last update: 2025-01-10 09:53:30 UTC
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
.