PHP Uml Generator

Generate class diagrams from PHP classes automatically?

autodia is easy to use if a bit basic. It handles a range of languages and makes a nice job of mySQL as well.

see also PHP UML Generator

Tools for generate sequence diagram(UML) from PHP class(files)

I will prefer UML diagram.
You can draw the diagram with the flow.

Software to generate PHP classes from UML Class Diagram

Enterprise Architect by Sparx Systems provides something like this. It allows you to generate class definitions from UML diagrams.

I've never used it with PHP before, only with C#, and I've always been better off generating the code myself. It adds a lot of code that's not needed.

generating class diagrams for php projects ( codeigniter framework)

If you want to draw them manually (ie. don't want reverse engineering to generate uml from your PHP source), then StarUML might be useful (if you're using Windows that is, but since you don't mention it I assume you do).

BTW The following question might be helpful too : PHP UML Generator

Generation of Class Diagram from XMI

One of the ways to do this would be to take the approach illustrated in my attempt 2 or 4,
and then follow instructions given here for Enterprise Architect.

To generate an XMI file using PHP_UML:

  • Follow these instructions to install PEAR if not installed already, if you have PHP installed separately.
  • If you are using XAMPP under Windows (my case), follow these instructions to add PEAR to the PATH env variable and thus make PEAR available through CMD, and to learn how to install packages in both *nix and Windows systems. Hint: the PATH separator is ";" (semicolon) for Windows.
  • In some setups, like if using XAMPP, you may need to activate the XSL extension. In this case, open your php.ini file (you may need Administrator privileges to save it), and uncomment or add the following line to the bottom of the "Dynamic Extensions" section: extension=php_xsl.dll.
  • Install the PHP_UML package with pear install PHP_UML.
  • Execute phpuml -f xmi -o name_of_output_dir. If you're planning to use the generated XMI with some older programs later, you may need to specify XMI version 1 by adding -x 1.
  • For me, this did not work immediately, saying that I am missing ../../data/xmlschema.rng. Not sure why this happened, but if you get a similar error, you can download it from here and place it into the data folder right under your PEAR directory.

This XMI can later be used with Enterprise Architect, ArgoUML and other XMI tools.



Related Topics



Leave a reply



Submit