GENERATE UML from PHP CODE

yum install php53-xml.i386

[root] pear install PHP_UML

Create and write into ulm.php

<?php

require_once 'PHP/UML.php';
 
$uml = new PHP_UML();
$uml->setInput(array('fcontrollers','fviews'));               // this defines which files/folders to parse (here, the folder "tests")
$uml->parse('myApp');                  // this starts the parser, and gives the name "myApp" to the generated metamodel
$uml->export('xmi', 'myApp.xmi');      // this serializes the metamodel in XMI code, and saves it to a file "myApp.xmi"
$uml->export('html', 'html');      // this serializes the metamodel in XMI code, and saves it to a file "myApp.xmi"
?>
 

Execute your script
[root] php ulm.php

Latest Post

Popular Post

Our Skills

Author

Project Director Information Architect Database Administrator Unix Administrator Senior Developer Project Manager Product Manager Web Marketer Cloud Engineer

Contact Us

For any questions or project ideas please contact me at the following.

I'm here