views:

84

answers:

1

Hi,

I am about to start a large refactoring job on a big PHP project.

I have successfully used pdepend to generate dependancy reports on the packages outlined in the PHPDoc blocks at the start of every file.

The information is really usefull, it outlines dependancies between packages (which packages are used by which, cyclic dependancies etc).

However I'd like to go one step further and get this data on individual classes. Ideally it would be a tool that compiled a report similar to pdepend however I'd settle for a command line tool that takes the name of a class and the path of a project and returns a list of files the class is used by.

Thanks for your help!

Ben

+1  A: 

I recently stumbled across this class graph generation script (SVN repo here). I haven't had time to play with it yet.

Daniel Hepper