Generating UML Static Class Diagrams from PHP Code or XMI

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Generating UML Static Class Diagrams from PHP Code or XMI

Post by Ollie Saunders »

I managed to find this which creates an XMI file from my class hierarchy. I then spent the whole bloody night looking for something that could sucessfully turn that XMI file into a diagram.

So what I am looking for is either something that makes a UML Static Class Diagram from a load of PHP files or from a XMI file. Preferibly with a nice interface so that I can edit/add to the diagram after. I has to run on windows XP or in a terminal (no X) on linux and free is a bonus.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Doxygen + Graphviz.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Is there any thing you don't have to take a course in first?
I had real difficulty working out what they do let alone how you go about doing it and I'm not sure either of them do UML static class diags.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

OK UML is a smurfing mugs game.
There I was thinking it was a nice way to document and communicate programming constructs but everything about it is so overly complicated. The diagrams themselves are great but virtually ever piece of software (and I've tried about 8 now) assoicated with it you need a degree to use.

What a waste of time.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I don't think Doxygen is that hard: you just document your code using javadoc style blocks and then run the programmer on it. The graphs are a bonus: http://www.stack.nl/~dimitri/doxygen/diagrams.html
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

What is the command line you would use then?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

`doxygen` in the directory of the source code.

You'll probably need to configure it with a Doxyfile, but Doxywizard makes generating said file extremely easy.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

well thanks for your help Ambush Commander but i've given up now.
Post Reply