PHP -> UML tool

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
jasongr
Forum Contributor
Posts: 206
Joined: Tue Jul 27, 2004 6:19 am

PHP -> UML tool

Post 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
User avatar
lazy_yogi
Forum Contributor
Posts: 243
Joined: Fri Jan 24, 2003 3:27 am

Post 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/
webhappy
Forum Newbie
Posts: 3
Joined: Fri Aug 06, 2004 4:38 pm
Location: Pasadena, CA

Post 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.
paalgg
Forum Newbie
Posts: 1
Joined: Tue Feb 27, 2007 6:22 pm

Re: PHP -> UML tool

Post 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.
Post Reply