Fixers and refactoring
Rector
Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
When to use it
Teams automating PHP upgrades, framework migrations, or repeatable refactoring
AST-based rules turn upgrades and refactoring recipes into reviewable project-wide code changes.
Installation and compatibility
- Type
- Fixer
- PHP
- ^7.4|^8.0
- License
- MIT
- Install
- composer require --dev rector/rector
Check the project documentation for configuration and version-specific requirements.
Strengths and limitations
ProAutomates PHP upgrades and repeatable AST refactoring.
ConGenerated refactors still require tests and code review.
Evidence: Source 1
Editorially reviewed
Repository activity
Activity: Active. Repository activity is a separate signal from suitability for your application.
- Latest release
- 2.8.5
- Last commit
- Last release
Metadata checked: .
Explore related tools
Browse all fixers and refactoring. Tools in the same category can serve different workflows; compare their requirements and limitations.