https://github.com/QafooLabs/php-refactoring-browser
PHP Refactoring Browser is a more recent take on the Refactoring Browser described in the good book. It could use some help (please contribute), but it has support for several common refactorings.
As of writing, the browser supports:
- Extract Method
- Rename Local Variable
- Convert Local to Instance Variable
- Rename Class and Namespaces
- Optimize Use Statements (PHP-specific)
There is a SublimeText plugin which actually works. When I'm looking at new code I'll apply some of these simple refactorings to help me get a handle on the codebase.