https://github.com/sulu/sulu-rector
Rector for Sulu CMS.
https://github.com/sulu/sulu-rector
rectorphp refractoring sulucms upgrades
Last synced: 12 days ago
JSON representation
Rector for Sulu CMS.
- Host: GitHub
- URL: https://github.com/sulu/sulu-rector
- Owner: sulu
- License: mit
- Created: 2022-05-12T12:04:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T15:54:36.000Z (10 months ago)
- Last Synced: 2025-02-01T23:51:07.295Z (4 months ago)
- Topics: rectorphp, refractoring, sulucms, upgrades
- Language: PHP
- Homepage:
- Size: 30.3 KB
- Stars: 14
- Watchers: 7
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sulu Rector
This project contains [Rector rules](https://github.com/rectorphp/rector) for [Sulu CMS](https://github.com/sulu/sulu) upgrades.
## Install
Install rector and sulu rector via composer to your project:
```bash
composer require rector/rector --dev
composer require sulu/sulu-rector --dev
```## Use Sets
To add a set to your config, use `Sulu\Rector\Set\SymfonySetList` and `Sulu\Rector\Set\SuluLevelSetList`
class and pick one of constants:```php
use Sulu\Rector\Set\SuluLevelSetList;
use Rector\Config\RectorConfig;return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
SuluLevelSetList::UP_TO_SULU_26,
]);
};
```