PHPackages                             brianpando/plantumlgen - 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. brianpando/plantumlgen

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

brianpando/plantumlgen
======================

package for code generate by plantUml Tool

1.0.3(6y ago)45891[7 issues](https://github.com/brianpando/plantUmlGen/issues)[1 PRs](https://github.com/brianpando/plantUmlGen/pulls)proprietaryPHPPHP ^7.1CI failing

Since Oct 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/brianpando/plantUmlGen)[ Packagist](https://packagist.org/packages/brianpando/plantumlgen)[ RSS](/packages/brianpando-plantumlgen/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (7)Used By (0)

plantUmlGen
===========

[](#plantumlgen)

📦 This is a first version of Laravel package to auto generate new models and migrations from [PlantUml](http://plantuml.com) file.

Install
=======

[](#install)

```
composer require brianpando/plantumlgen

```

How to Use
==========

[](#how-to-use)

you need have the Plantuml plain file (**plantuml.pu**) in root project, this file must be contains the class diagram with a namespace models. For learn how to write a class diagram please visit .

you can write your diagram using online editor .

This is an class diagram example:

```
@startuml

class models.Author{
    name:string
    lastname:string
}
class models.Book{
    title:string
    year:integer
    edition:string
    publishing:date
}
class models.Store{
    address:string
}
models.Book"1"*--"1"models.Author
models.Store"1"o--"*"models.Book

@enduml

```

Now, you can create the models or the migration file using the new commands:

### for models

[](#for-models)

```
php artisan plant:models

```

This create a models folder in your folder app/, then create each class like a model eloquent including the relationship. please be careful linking with the right relationship in your diagram.

### for migration file

[](#for-migration-file)

=&gt; You should have a database created.

```
php artisan plant:migrations

```

this create a migration file in you migrations folder with the name `[yyy-mm-dd_HHMMSS]_[create|update]_[classname].php`, then you can run the migration with `php artisan migrate`. that is all ❗.

📌 if you need, this package get the plantuml.jar who create a png diagram file, for use it, you must be in root project and execute:

```
java -jar vendor/briandpando/plantumlgen/plantuml.jar plantuml.pu

```

this create a png file of diagram class.

### for controllers

[](#for-controllers)

```
php artisan plant:controllers

```

This create the controller in your app/controllers folder, for this you should create in classes using controller namespace in your class diagram. If controller exists, it only add new methods.

If you are using Visual Studio Code
===================================

[](#if-you-are-using-visual-studio-code)

Exist a extension for plantUML please Launch VS Code Quick Open (Ctrl + P) and type `ext install plantuml`, then install PlantUml ext. if you are using the local file plantuml.jar please you must have installed Java and Graphviz, for generate preview screen in VS. for example in Mac `brew install graphviz`.

Testing
=======

[](#testing)

Exist a couple of PHpUnit components, for using in package vendor/bin/phpunit tests/CreateControllersTest.php

Next
====

[](#next)

In next versions the package will generate another layers of your code using the class or package diagram from PlantUML.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.9% of commits — single point of failure

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 ~19 days

Total

4

Last Release

2339d ago

### Community

Maintainers

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

---

Top Contributors

[![brianpando](https://avatars.githubusercontent.com/u/18105152?v=4)](https://github.com/brianpando "brianpando (51 commits)")[![gabrielCapcha](https://avatars.githubusercontent.com/u/55962543?v=4)](https://github.com/gabrielCapcha "gabrielCapcha (10 commits)")[![gcapcha](https://avatars.githubusercontent.com/u/70397837?v=4)](https://github.com/gcapcha "gcapcha (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brianpando-plantumlgen/health.svg)

```
[![Health](https://phpackages.com/badges/brianpando-plantumlgen/health.svg)](https://phpackages.com/packages/brianpando-plantumlgen)
```

###  Alternatives

[oomphinc/drupal-scaffold

A Drupal scaffold project

192.6k](/packages/oomphinc-drupal-scaffold)

PHPackages © 2026

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