PHP static code analysis - finding class dependencies

I'm going to start a lot of refactoring work in a big PHP project.

I have successfully used pdepend to generate dependency reports on the packages described in the PHPDoc blocks at the beginning of each file.

The information is really useful, it describes the dependencies between packages (for which packages are used, circular dependencies, etc.).

However, I would like to take another step and get this data for individual classes. Ideally, this would be a tool that compiles a report similar to pdepend, but I would agree to a command line tool that takes a class name and project path and returns a list of files that the class is used to.

Thank you for your help!

Ben

+3
source share
1 answer

I recently stumbled upon this graph generation of a script class ( SVN repo here ). I have not had time to play with him.

+2
source

Source: https://habr.com/ru/post/1754392/


All Articles