3

I am working on a CodeIgniter project. I need to create class diagrams. I just wanted to make sure do I need to make diagrams for model and controller separately? or will it be normal OOP class diagram?

Where can I get class diagram of CodeIgniter framework?

Peham
  • 31
  • 1
  • 4
  • welcome to Stack Overflow, before anything else you should read topics in the [Help Center - Asking](http://stackoverflow.com/help/asking), BTW: your question is probably off-topic for this site – xmojmr May 15 '14 at 05:26

2 Answers2

0

What sort of diagrams you need depends on the "why you need to create those diagrams". What will they document. Who will read them and why etc.

You can put many (hundreds) of classes into one diagram. This is usually done when documenting database structures or Object Relational Mappers (ORM) using Entity Relationship Diagrams, you can find many examples and some useful tools like yWorks yED, Toad Data Modeler on the internet. So if this kind of big class diagram suits your needs then use it

The decision how many diagrams you need is totally up to you, my answer to question UML diagram for dependency between systems can give you some links to some useful websites.

I don't know if there is some class diagram of "put_your_favorite_framework_name_here" already available and if it is part of generated documentation. In case of CodeIgniter it may be available, ask at CodeIgniter's support forums, e.g. Codeigniter UML class diagram - thread 91800

If such diagram is not available then you can use e.g. Sparx Systems Enterprise Architect's reverse engineering features to create it for you

Community
  • 1
  • 1
xmojmr
  • 8,073
  • 5
  • 31
  • 54
0

phUML is the best tool I have encountered and only worked for me. You can easily generate a class diagram from your existing code.

Navigate to the folder and try the below command to generate the class diagram on linux

./phuml -r /var/www/my_project -graphviz -createAssociations false -neato out.png

phUML is fully automatic UML class diagramm generator written PHP. It is capable of parsing any PHP5 object oriented source code and create an appropriate image representation of the oo structure based on the UML specification.

More info

./phuml --help
Techie
  • 44,706
  • 42
  • 157
  • 243