Jump to content

Looking for PHP5 UML (Mainly class diagrams) Modeller


448191

Recommended Posts

As the title implies.

I've been thinking Visual Paradigm for UML Standard Edition.

Visual Paradigm for UML Standard Edition also has Reverse Engineering for php 5.

The datasheet for  Visual Paradigm says it has Reverse Engineering support for PHP [b]5.0[/b]. Does that mean I absolutely can't use 5.1?

[quote=manual]SPL uses class constants since PHP 5.1. Prior releases use global constants in the form RIT_LEAVES_ONLY.[/quote]

Above shouldn't matter, should it?
Link to comment
Share on other sites

OK, so I tried out VP-UML, and as an UML newbie I have to say it's not very intuitive. I also tried ArgoUML, wich is more intuitive I feel, plus it makes design suggestions; a feature I like VERY mucho..

As for VP-UML's import feature: it works pretty smoothly.

Here's a small script I wrote to combine all the files in my 'lib' directory into one big file, ready for import by VP-UML:
[code]
<?php
function __autoload($className) {
  require_once 'lib/'.strtolower($className). '.class.php';
}
//Script to merge all files in library dir into one file
function createLibraryFile($dir){
//Create empty library file:
$fp = fopen($dir.'/lib.php','w');
fwrite($fp,'<?php')."\n";
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if (strstr($file,'class.php')) {
echo 'Processing file: '.$file.'<br/>';
//Include the file to check for any parse errors:
require_once($dir.'/'.$file);
$content = str_replace(array('<?php','?>'),'',file_get_contents($dir.'/'.$file))."\n";
if(!fwrite($fp,$content)){
trigger_error('Writing of "'.$file.'" failed.',E_USER_ERROR);
}
}
}
closedir($handle);
}
fwrite($fp,'?>')."\n";
fclose($fp);
}
createLibraryFile($_SERVER['DOCUMENT_ROOT'].'/lib');
?>[/code]

Right now I'm thinking I'll export the imorted UML to XMI, then import it into ArgoUML, redesign, export to XMI, and convert it to PHP using 'XMI to PHP'...

See the 'resources' sticky...
Link to comment
Share on other sites

Auch... It seems XMI to PHP currently only supports php 4... Bummer.

Pretty dissapointing, but not as dissapointing as the fact VP-UML doesn't support generating PHP5 in the first place. I can reverse engineer, why not the other way around?  :(
Link to comment
Share on other sites

[quote author=Jenk link=topic=108024.msg434791#msg434791 date=1158319127]
phpDocumentor makes diagrams, though I've never used it for that purpose.
[/quote]

I didn't know that, but it's not really relevant either, because I wan't to create classes from diagrams, not diagrams from classes.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.