In 2024 we published an in-house tool that we used only internal for years.
It can help you with various everyday tasks that are outside Rector's scope, but are connected with upgrades and code quality.
Swiss Knife package is scoped and downgraded. It requires PHP 7.2+ and can be installed on any legacy project.
Install with Composer:
composer require rector/swiss-knife --dev
It helps you to:
composer.json
, class names and use imports/packages/
folder...and more
See Swiss knife Github repository for full documentation.