PHPackages                             andyabih/laravel-to-uml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. andyabih/laravel-to-uml

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

andyabih/laravel-to-uml
=======================

Automagically generate UML diagrams of your Laravel code.

1.0.3(5y ago)15682.1k—7.7%16[2 issues](https://github.com/andyabih/laravel-to-uml/issues)[1 PRs](https://github.com/andyabih/laravel-to-uml/pulls)MITPHP

Since Apr 4Pushed 2y ago3 watchersCompare

[ Source](https://github.com/andyabih/laravel-to-uml)[ Packagist](https://packagist.org/packages/andyabih/laravel-to-uml)[ RSS](/packages/andyabih-laravel-to-uml/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

[![Laravel To UML Example](https://user-images.githubusercontent.com/10498402/113521629-53055b80-95a3-11eb-8f56-d2e1de856345.png)](https://user-images.githubusercontent.com/10498402/113521629-53055b80-95a3-11eb-8f56-d2e1de856345.png)

Laravel UML Diagram Generator
=============================

[](#laravel-uml-diagram-generator)

Automagically generate UML diagrams of your Laravel code.

Installation
============

[](#installation)

To install LTU via composer, run the command:

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

```

Usage
=====

[](#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
=============

[](#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](https://github.com/skanaar/nomnoml) to generate the diagram, so more information about the different nomnoml styling properties can be found on their Github.

Exporting the diagram
=====================

[](#exporting-the-diagram)

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

Importing requirements
======================

[](#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
-------

[](#credits)

- [Yellow Digital](https://yllwdigital.com)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

1868d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d248357fed636e83b6843a736c09e78cf0505890c37587f013a76c9787b30fb?d=identicon)[andyabih](/maintainers/andyabih)

### Embed Badge

![Health badge](/badges/andyabih-laravel-to-uml/health.svg)

```
[![Health](https://phpackages.com/badges/andyabih-laravel-to-uml/health.svg)](https://phpackages.com/packages/andyabih-laravel-to-uml)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
