承接 lafnager-dev/laramap 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lafnager-dev/laramap

Composer 安装命令:

composer require lafnager-dev/laramap

包简介

Laravel CLI tool that visualizes database structure as a map.

README 文档

README

Visualize your Laravel database like a map.

LaraMap is a Laravel package that helps you explore your database structure, models, and relationships directly from the terminal using Artisan commands. It is designed to make understanding Laravel projects fast and simple.

🚀 Installation

Install via Composer:

composer require lafnager-dev/laramap

⚙️ Usage

After installation, you can use the following commands:

Display all model relationships

php artisan laramap:relations

Example output:

Users
 ├── hasMany Orders
 └── hasOne Profile

Orders
 ├── belongsTo User
 └── hasMany OrderItems

Products
 └── belongsTo Category

Inspect a specific table

php artisan laramap:show users

Example output:

Table: users

Columns:
- id
- name
- email
- password
- created_at
- updated_at

Relations:
- hasMany Orders
- hasOne Profile

🧠 How it works

LaraMap scans your Laravel project automatically by reading Eloquent models inside app/Models. It detects relationships such as hasOne, hasMany, belongsTo, and belongsToMany, then builds a relationship map and displays it in a clean CLI tree format.

📁 Requirements

  • PHP 8.3 or higher
  • Laravel 10, 11, 12, or 13

💡 Features

  • ⚡ Fast Laravel model scanning
  • 🌲 Clean CLI tree output
  • 🔒 Read-only mode (no database changes)
  • 🔧 Works in any Laravel project

📦 Package Structure

src/
 ├── Console/
 │    ├── RelationsCommand.php
 │    ├── ShowCommand.php
 │
 ├── Scanner/
 │    ├── ModelScanner.php
 │    ├── RelationScanner.php
 │    ├── TableScanner.php
 │
 └── LaramapServiceProvider.php

📌 Roadmap

Future improvements planned:

  • Laravel relationship path finder (laramap:path User Product)
  • Graph visualization mode
  • Migration tracking support
  • JSON export feature
  • Interactive TUI mode

🤝 Contributing

Pull requests are welcome. Feel free to improve scanning logic or add new features.

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固