Page 1 of 1

PHP -> UML tool

Posted: Thu Jul 29, 2004 2:43 am
by jasongr
Hello

I was wondering if anyone know of a tool that knows how to take PHP code and generate UML class diagrams from it

regards
Jason

Posted: Thu Aug 05, 2004 12:32 am
by lazy_yogi
Most ask for the opposite. That way you can describe it in UML and generate whatever language the application has implemented. Here is one that looks very promising. You describe your application in terms of XML and it generates the database and data access laters for you. I haven't used it before but looks damn good. I'm not currently using php, which is why I haven't tried it out yet.

http://propel.phpdb.org/

Posted: Fri Aug 06, 2004 6:47 pm
by webhappy
Hi Jason,

If you want, you can take a look at my Java->PHP translator project, although you would essentially need to re-write your classes in Java. I don't think you can really bank on PHP getting the same volume of OOP tools as Java has.

Of course, if you use my project (and it's useful), there are many UML tools for Java.

Re: PHP -> UML tool

Posted: Tue Feb 27, 2007 6:30 pm
by paalgg
jasongr wrote:I was wondering if anyone know of a tool that knows how to take PHP code and generate UML class diagrams from it
Allow me to answer this old thread by telling about my own tool.

I had the same problem, could not find any tools that did this in a good way, and was tired of waiting for it, so I made it myself.

Please take a look at http://www.gammelsaeter.com/php2xmi/

I would love to get comments and suggestions. I am planning to put in Umbrello support so that the classes automatically will be set up, so that the users do not have to drag every class into the diagram sheet.

I have tested the XMI output file with StarUML, agroUML and Umbrello, and it works perfectly.