PHPackages                             fase22/laramaid - 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. fase22/laramaid

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

fase22/laramaid
===============

A bridge between Laravel and Mermaid.

014[2 PRs](https://github.com/FaSe22/laramaid/pulls)PHPCI passing

Since Dec 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/FaSe22/laramaid)[ Packagist](https://packagist.org/packages/fase22/laramaid)[ RSS](/packages/fase22-laramaid/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

A bridge between Laravel and Mermaid.
=====================================

[](#a-bridge-between-laravel-and-mermaid)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6ec5c41f552123936a27dc54c41e6879a328df7ba8af0505befac593f05641b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661736532322f6c6172616d6169642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fase22/laramaid)[![GitHub Tests Action Status](https://camo.githubusercontent.com/498a0157a3d2068090856934d4c2c9088966441c1e7e29a31069ccb47b02d5f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6661736532322f6c6172616d6169642f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/fase22/laramaid/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ee20723c8706fd829d3809d0dd970d554002bc8f2f2dc48f64c3ee8bef8300af/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6661736532322f6c6172616d6169642f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/fase22/laramaid/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/7bc102f8a4f46117c8a8bff0988754a278a926fd98110fa1439a9d5b5f6376ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661736532322f6c6172616d6169642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fase22/laramaid)

You can go both directions: Either scan your Laravel Application and generate a class diagram from it or pass an class diagram for code generation.

Generate Class Diagram
----------------------

[](#generate-class-diagram)

Laramaid will scan your Laravel Application and generate a Mermaid Class Diagram for it. This way your Diagram will always be up to date.

### Github Action

[](#github-action)

Feel free to integrate the Laramaid Class-Diagram-Generator in your workflow. This ways you always get up to date diagrams that are part of version control.

Generate Laravel Boilerplate Code from your Class Diagram
---------------------------------------------------------

[](#generate-laravel-boilerplate-code-from-your-class-diagram)

Laramaid can generate boilerplate code from your mermaid class diagram: models, controllers, policies, enums, etc. It supports method-stub and property generation.

TBD:
----

[](#tbd)

Generate migration columns and factories

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/64f268105ce4ce22c79fbbe2d8a0a2e17613a61849d0560e4afcfa5b10eb74fc/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c6172616d6169642e6a70673f743d31)](https://spatie.be/github-ad-click/laramaid)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require fase22/laramaid
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laramaid-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laramaid-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laramaid-views"
```

Usage
-----

[](#usage)

```
$laramaid = new Fase22\Laramaid();
echo $laramaid->echoPhrase('Hello, Fase22!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [sebastianfaber](https://github.com/fase22)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/66a288eac28844ebbfcabaee6fd212a5dc2b35ed69994eb974dac30441a2d615?d=identicon)[FaSe22](/maintainers/FaSe22)

---

Top Contributors

[![FaSe22](https://avatars.githubusercontent.com/u/73117211?v=4)](https://github.com/FaSe22 "FaSe22 (66 commits)")

### Embed Badge

![Health badge](/badges/fase22-laramaid/health.svg)

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

###  Alternatives

[eftec/autoloadone

AutoloadOne is a program that generates an autoload class for PHP.

403.4k](/packages/eftec-autoloadone)

PHPackages © 2026

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