PHPackages                             lara-care/schema-visualizr - 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. lara-care/schema-visualizr

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

lara-care/schema-visualizr
==========================

An UML package for larael helpping with the different diagrams visualization

1.0.0(10mo ago)00Blade

Since Jun 28Pushed 6mo agoCompare

[ Source](https://github.com/LaraCare/schema-visualizr)[ Packagist](https://packagist.org/packages/lara-care/schema-visualizr)[ RSS](/packages/lara-care-schema-visualizr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

LaraCare Schema Visualizr
=========================

[](#laracare-schema-visualizr)

**LaraCare Schema Visualizr** is an intelligent Laravel package that automatically generates **UML/Class** Diagrams from your Eloquent Models and Database Migrations, providing a clear and dynamic visualization of your application’s architecture.

It helps developers, architects, and researchers instantly understand model attributes, relationships, and schema structure, all rendered in Mermaid.js format.

Features
========

[](#features)

- **Automatic Model Discovery:** Scans all your Laravel model classes and extracts their structure via reflection.
- **Migration Intelligence:** Parses migration files to infer table names, columns, and foreign key relationships.
- **Relationship Detection:** Identifies `hasOne`, `hasMany`, `belongsTo`, and `belongsToMany` relationships using runtime analysis.
- **Unified Schema Understanding:** Combines information from both models and migrations for complete schema accuracy.
- **Visual Representation:** Outputs diagrams in Mermaid Class Diagram syntax, compatible with Markdown, Docs, and LiveView rendering.
- **Safe &amp; Extensible Architecture:** Built with modular parsers (ModelParser, MigrationParser) for easy extension and maintenance.

📦 Installation
==============

[](#-installation)

```
composer require laracare/schema-visualizr --dev
```

Publish the configuration
-------------------------

[](#publish-the-configuration)

```
php artisan vendor:publish --provider="LaraCare\SchemaVisualizr\SchemaVisualizrProvider"
```

🧠 How It Works
==============

[](#-how-it-works)

The package works in three main stages:

StageDescription**Model Analysis**Reflects on your Laravel models to extract class names, fillable attributes, and Eloquent relationships.**Migration Parsing**Reads migration files to capture column definitions and foreign key constraints.**UML Generation**Combines both layers of information into a rich Mermaid diagram syntax for rendering.🧱 Core Components
=================

[](#-core-components)

### 1️⃣ Diagram Service

[](#1️⃣-diagram-service)

This is the central service that generates the final UML.

Location: `src/Services/Diagram.php`

Responsibilities:

- Load and analyze model classes.
- Parse migration files.
- Detect relationships.
- Generate Mermaid UML syntax.

- Example:

```
use LaraCare\SchemaVisualizr\Services\Diagram;
use LaraCare\SchemaVisualizr\Parsers\ModelParser;

$diagram = new Diagram(new ModelParser());
$uml = $diagram->generate();

echo $uml;
```

Output Example:

 ```
%%{ init: { 'theme': 'base', 'themeVariables': { 'primaryColor': '#257abbff' }}}%%
classDiagram
    class User {
        +id: string
        +name: string
        +email: string
    }

    class Post {
        +id: string
        +title: string
        +user_id: string
    }

    User --> Post : HasMany
    Post --> User : BelongsTo
```

      Loading 🧑‍💻 Author
==========

[](#‍-author)

Jery FOTO AI/ML &amp; IoT Developer | Laravel Backend Engineer 📧 \[\] 🌐

⭐ Contribute
============

[](#-contribute)

Pull requests are welcome! If you have new ideas for schema visualization or AI-assisted architecture diagrams, open an issue or PR.

💬 Feedback &amp; Support
========================

[](#-feedback--support)

Your feedback helps this package evolve intelligently.

- 🧩 Contributions: Fork, improve, and send a PR — every contribution counts.
- 📧 Direct Contact: [Contact Me](https://jery-portal.vercel.app/#contact)(for professional collaboration)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance62

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

320d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b860a5fc379d49a6e24dd5538ee320466c6c2151b59e74f9ebd245bf11d11943?d=identicon)[jery123](/maintainers/jery123)

---

Top Contributors

[![jery123](https://avatars.githubusercontent.com/u/85230959?v=4)](https://github.com/jery123 "jery123 (19 commits)")

### Embed Badge

![Health badge](/badges/lara-care-schema-visualizr/health.svg)

```
[![Health](https://phpackages.com/badges/lara-care-schema-visualizr/health.svg)](https://phpackages.com/packages/lara-care-schema-visualizr)
```

###  Alternatives

[phalcon/zephir

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

3.4k414.1k18](/packages/phalcon-zephir)[code-tool/jaeger-client-php

35520.8k9](/packages/code-tool-jaeger-client-php)[rafaelfragoso/haversini-formula

This PHP class can replace the Google Distance Matrix to calculate the distance between two points using latitude and longitude. It will prevent you to do massive requests to Google servers and enhance your service performance.

45212.0k](/packages/rafaelfragoso-haversini-formula)

PHPackages © 2026

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