What is this all about?
phUML is fully automatic UML class diagramm generator written PHP. It is capable of parsing any PHP5 object oriented source code and create an appropriate image representation of the oo structure based on the UML specification.
What does it look like?
The image shown here is the class diagramm which phUML created when run on its own codebase. This image is hardly readable, because it has been resized to fit in the layout of this page. You can take a look at the complete image by clicking here
Can I use this for my own projects?
phUML has quite a informative help interface, which can be accessed by calling it with the -h option.
$ phuml -h
The phUML generator works with so called processors, which may be used in a chain to create a lot of different output formats. Every available processor can be listed by calling phUML with the -l option.
$ phuml -l
The most important processor used to create images of any kind is the graphviz processor. As its name indicates it outputs information in the so called dot language used by graphviz. To sucessfully handle this output format and create the desired images you will need the graphviz toolkit installed on your system. You may then call the neato or dot executables, which are part of graphviz, to process the created file manually or you may phUML do this for you by using the dot or neato processor.
You should just play around with the phUML commandline tool to get a better understanding of what the processors do and how they work. To give you a short example of how a complete phUML call could look like, this is the one used generate the example you can see above.
$ phuml -r ./ -dot -createAssociations false -neato example.png
Where can I obtain this great stuff?
The newest version if phUML is always available from its subversion repository.