448191 Posted September 14, 2006 Share Posted September 14, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/20726-looking-for-php5-uml-mainly-class-diagrams-modeller/ Share on other sites More sharing options...
448191 Posted September 14, 2006 Author Share Posted September 14, 2006 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]<?phpfunction __autoload($className) { require_once 'lib/'.strtolower($className). '.class.php';}//Script to merge all files in library dir into one filefunction 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... Quote Link to comment https://forums.phpfreaks.com/topic/20726-looking-for-php5-uml-mainly-class-diagrams-modeller/#findComment-91808 Share on other sites More sharing options...
448191 Posted September 14, 2006 Author Share Posted September 14, 2006 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? :( Quote Link to comment https://forums.phpfreaks.com/topic/20726-looking-for-php5-uml-mainly-class-diagrams-modeller/#findComment-91815 Share on other sites More sharing options...
Jenk Posted September 15, 2006 Share Posted September 15, 2006 phpDocumentor makes diagrams, though I've never used it for that purpose. Quote Link to comment https://forums.phpfreaks.com/topic/20726-looking-for-php5-uml-mainly-class-diagrams-modeller/#findComment-92315 Share on other sites More sharing options...
448191 Posted September 15, 2006 Author Share Posted September 15, 2006 [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. Quote Link to comment https://forums.phpfreaks.com/topic/20726-looking-for-php5-uml-mainly-class-diagrams-modeller/#findComment-92327 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.