Code Monkey home page Code Monkey logo

laravel-to-uml's Introduction

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

laravel-to-uml's People

Contributors

andyabih avatar reached avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.