Solved

PHP UML Modeller and generate code

Posted on 2013-01-13
1
656 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Software development teams often use in-memory caches to improve performance. They want to speed up access to, or reduce load on, a backing store (database, file system, etc.) by keeping some or all of the data in memory.   You should implement a …
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now