Tools for PHP code refactoring

Tihy picture Tihy · Aug 21, 2008 · Viewed 34.6k times · Source

Are there any tools which support refactoring PHP code (renaming variables, extracting methods, finding method references, ...)? Thank you.

Answer

Ian Greenleaf Young picture Ian Greenleaf Young · Jan 31, 2010

Scisr is a simple, standalone refactoring tool for PHP.

I know this is an old question, but since it's one of the best rundowns of PHP refactoring tools, I thought I would add my new project to the list.

A lot of my design goals sprung out of the inadequacies of other items mentioned here - they are tied into certain IDEs, or try to dictate your testing practices, or require a whole bunch of rote manual labor. I am hoping to create an overall better experience in Scisr. It's simple to install and run. It tries to be clever, but not too clever. It does the tasks that I have found to lend themselves best to automation. Enjoy!