clue / graph-uml
Generate UML class diagrams by reflection for your PHP projects
Installs: 1 431
Dependents: 0
Suggesters: 0
Security: 0
Stars: 23
Watchers: 5
Forks: 6
Open Issues: 8
Requires
- php: >=5.3.0
- clue/graph: 0.7.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-12-06 08:43:36 UTC
README
Generate UML class diagrams by reflection for your PHP projects
Note: This project is in beta stage! Feel free to report any issues you encounter.
Quickstart example
Once installed, you can use the following code to draw an UML class diagram for your existing classes:
// initialize an empty graph and the UML class diagram builder $graph = new Fhaculty\Graph\Graph(); $builder = new Fhaculty\Graph\Uml\ClassDiagramBuilder($graph); // let's add some classes to the diagram $builder->createVertexClass('Fhaculty\Graph\Uml\ClassDiagramBuilder'); // display graph as svg image $graphviz = new Fhaculty\Graph\GraphViz($graph); $graphviz->display();
Install
The recommended way to install this library is through composer. New to composer?
{ "require": { "clue/graph-uml": "0.2.*" } }
Additionally, you'll have to install GraphViz (dot
executable).
Users of Debian/Ubuntu-based distributions may simply invoke:
$ sudo apt-get install graphviz
Windows users have to download GraphViZ for Windows and remaining users should install from GraphViz homepage.
License
MIT