承接 andyabih/laravel-to-uml 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andyabih/laravel-to-uml

最新稳定版本:1.0.3

Composer 安装命令:

composer require andyabih/laravel-to-uml

包简介

Automagically generate UML diagrams of your Laravel code.

README 文档

README

Laravel To UML Example

Laravel UML Diagram Generator

Automagically generate UML diagrams of your Laravel code.

Installation

To install LTU via composer, run the command:

composer require andyabih/laravel-to-uml --dev

Usage

LTU will register the /uml route by default to a view that displays your UML graph.

You can configure the package and tweak it to fit your needs by publishing the config file using:

php artisan vendor:publish --provider="Andyabih\LaravelToUML\LaravelToUMLServiceProvider" --tag="config"

This will create a new laravel-to-uml.php file in your config folder.

Configuration

The configuration should hopefully be self-explanatory. You can change what type of classes get included in the diagram by changing the true|false boolean in the configuration file.

You can also change the styling of the diagram in the config. LTU uses nomnoml to generate the diagram, so more information about the different nomnoml styling properties can be found on their Github.

Exporting the diagram

nomnoml generates the diagram in a canvas, and you can simply right click & save the canvas to an image.

Importing requirements

Your classes must be imported using the use operator.

// This will work and generate everything properly.
use App\Models\Post;

// Using it directly in the code without the use operator won't.
$posts = \App\Models\Post::all();

Credits

统计信息

  • 总下载量: 77.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 157
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 157
  • Watchers: 3
  • Forks: 16
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-04