3

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

2
  • (related) PHP QA Tools Commented Jul 13, 2010 at 12:01
  • Thanks for link Gordon - the tools in here do help with the problem I'm facing. In particular the dead code checker. Still holding out for a class dependancy tracking tool though :) Commented Jul 13, 2010 at 12:50

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

It doesn't seem to work right, I think some of the regex is off because when running it against wordpress it includes comments as classes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.