PSR-4-aware PHP refactoring for VS Code. Automatically updates class names, namespaces, and all references across your project when you rename or move files. Includes classes, interfaces, traits and enums.
Features
Rename Symbol for class names, methods, and properties with cross-project reference updates
File rename → Class rename — renaming User.php to Account.php renames class User to class Account and updates all references
File move → Namespace update — moving a file to a different folder updates the namespace declaration and cross-project reference updates
Import class quick fix — suggests adding use statements for unresolved class references
Updates all use statements, type hints, new, extends, implements, ::class, catch, instanceof, attributes, and more
Handles group use statements, aliased imports, and fully-qualified references
PSR-4 namespace resolution from composer.json
Demos
Rename Symbol
Right-click a class name, method, or property and select Rename Symbol. The declaration, file, and all references across the project are updated.
File Rename
Rename a .php file in the explorer — the class declaration and all references are updated automatically.
File Move
Move a file to a different folder — the namespace declaration and all references are updated.
Import Class
Use a class without a use statement and get a quick fix to import it.