News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DZone.com:
PHP UML generation from a live object graph
May 11, 2011 @ 10:19:47

On the PHP On Windows section of the DZone.com site Giorgio Sironi has a new post looking at the process (and script he's created) to create a UML diagram with PHP from a project's current class structure.

Sometimes you need to share a design with your colleagues. You can walk him through the code, and explain which classes and interfaces you created, but there are higher abstracted models that you can show to him to make him grasp the picture quickly. One of these tools is UML, and in particular class diagrams.

His script creates a UML diagram from a PHP object graph, a sort of "reverse engineering" of the current object's hierarchy and relationships. It creates definitions that Yuml.me can use to generate the image and does some handy things like following the path down N levels until it hits "the bottom" and the ability to ignore certain namespaces (like "Zend_" or "Doctrine_") to help limit things down to just your application. He includes a sample set of tests to show it in action as well as a resulting UML diagram generated from the PHPUnit structure.

0 comments voice your opinion now!
uml generate github object live graph


blog comments powered by Disqus

Similar Posts

Stuart Herbert's Blog: Learning PHP Data Objects, by Dennis Popel

Rob Allen's Blog: A review of "Object-Oriented Programming with PHP5"

WeberDev.com: PHP 101 (part 11) - Sinfully Simple (SimpleXML)

Zend Framework Blog: Help us improve the documentation!

Jani Hartikainen's Blog: Using models as criteria objects for querying the database


Community Events





Don't see your event here?
Let us know!


podcast tool series laravel opinion security version framework list interview conference voicesoftheelephpant release introduction symfony artisanfiles language community composer library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework