IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Rector

Last modified: 21 June 2023

IntelliJ IDEA supports PHP code upgrade and refactoring functionality based on the Rector plugin.

Rector provides code transformation rules for automated refactoring and upgrade of applications to a newer framework or PHP version. With IntelliJ IDEA, you can run Rector rules against a selected folder or file right from the Project tool window, compare the source and modified code in the diff viewer, and pick which changes to apply.