0

Possible Duplicate:
PHP UML Generator

I am trying to understand some php code that is heavily object-oriented and has a MVC structure.. without much luck from just browsing the code.

Is their a tool that can help me, for example by producing some class diagrams, which classes extend which ones, what functions each class has and how they communicate, even in a high level?

Community
  • 1
  • 1
  • Ever tried one of the many IDEs? – KingCrunch Nov 01 '11 at 15:09
  • Using a documentation generation tool, such as [Doxygen](http://www.stack.nl/~dimitri/doxygen/), *might* be able to help you out. –  Nov 01 '11 at 15:09
  • You want an IDE like [NetBeans](http://netbeans.org/features/php/), [Eclipse](http://www.eclipse.org/projects/project.php?id=tools.pdt) or [others](http://www.google.co.uk/search?q=php+ide)... Which one you want is a case of personal preference. – DaveRandom Nov 01 '11 at 15:10
  • more http://stackoverflow.com/search?q=uml+php – Gordon Nov 01 '11 at 15:20

2 Answers2

0

I would recommend http://bouml.free.fr/ - this can create UML diagrams from PHP - very good tool ...

Manse
  • 37,765
  • 10
  • 83
  • 108
0

If your project is using a known framework, read the docs to understand how it is structured.

Doxygen can help building call graphs and relationships between objects and more if the code is documented.

An IDE such as Eclipse PDT or Komodo will help browsing/viewing.

It probably has an index.php page that will load the code/framework and probably a config.php file to configure it. Reading both of these files will help you figure out where a request starts being processed.

Martin Samson
  • 3,970
  • 21
  • 25