storeman/graph-uml
Composer 安装命令:
composer require storeman/graph-uml
包简介
Generate UML class diagrams by reflection for your PHP projects
README 文档
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. Note: This project is forked from clue/graph-uml. It supports PHP7 and uses phpunit 7
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": {
"storeman/graph-uml": "0.3.*"
}
}
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
统计信息
- 总下载量: 1.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-22