Solved

PHP UML Modeller and generate code

Posted on 2013-01-13
1
658 Views
Last Modified: 2013-02-02
Back in my old uni days I used Rational Rose which was great, I could do my UML diagrams, and generate my code for Java.

Ive just started with PHP OOP, and decided to look for a package that would allow me to do my class diagrams and generate the code for PHP, but cant belive how hard it is.

I would prefer  the software to be free for personal user, so tried:-
Umbrello - Community
Visual Paradigm for UML
StarUML

Through work I have Microsoft Visio, but it doesn't have PHP code generation built in

What do other people use to develop their diagrams, or is it just easier to do what Im doing at the moment, and code from the diagrams instead of it being automatic.

Thank you
0
Comment
Question by:tonelm54
1 Comment
 
LVL 12

Accepted Solution

by:
adrian_brooks earned 500 total points
ID: 38773038
What you're asking for is something that likely works well in true OOP coding languages. Albeit, PHP has come a long way to be more "object oriented", it's more like Perl 5.x in that sense. In that it will support the look and feel of objects, properties and methods. It even does inheritance pretty decently. But when it comes to method overloading and overriding, PHP falls quickly out of that window.

Now, don't get me wrong here. I have a massive affinity for PHP and have adapted quite nicely to most of its shortcomings, but in reference to your question, I'm sure that what you're looking for can be done, but it will either be something someone would need to write as a standalone application or that nobody will pursue since I have not really encountered too many developers that would even use UML as part of their software planning processes anymore. And I don't say that to disrespect you, it's just that I've been a programmer for over 25 years and am strictly speaking from 2.5 decades of looking back. UML has great value, but the PHP developers, including myself, that I have encountered, rarely, if ever, think in terms of UML when scoping out a project.

~AB
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Introduction Many of the most common information processing tasks require sorting data sets.  For example, you may want to find the largest or smallest value in a collection.  Or you may want to order the data set in numeric or alphabetical order. …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question