PHPackages                             dndark/laravel-logic-map - 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. dndark/laravel-logic-map

ActiveLibrary

dndark/laravel-logic-map
========================

Understand, audit, and visualize your Laravel application's workflows, change impact, and architectural risk.

v1.3.3(1mo ago)26—0%MITPHPPHP ^8.2CI passing

Since Mar 16Pushed 1mo agoCompare

[ Source](https://github.com/DNDark12/laravel-logic-map)[ Packagist](https://packagist.org/packages/dndark/laravel-logic-map)[ Docs](https://github.com/DNDark12/laravel-logic-map)[ RSS](/packages/dndark-laravel-logic-map/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (15)Used By (0)

 [![Laravel Logic Map Logo](https://raw.githubusercontent.com/DNDark12/laravel-logic-map/main/art/logo.png)](https://raw.githubusercontent.com/DNDark12/laravel-logic-map/main/art/logo.png)

Laravel Logic Map
=================

[](#laravel-logic-map)

 **Understand, audit, and visualize your Laravel application's workflows, change impact, and architectural risk.**

**Laravel Logic Map** is a local-first Laravel package that maps how logic moves through your app — from routes to controllers, services, jobs, events, and persistence.

It provides humans and AI assistants with a deterministic, AST-powered single source of truth for architectural dependencies and execution flows.

Key Features
------------

[](#key-features)

- **Workflow Visualization**: Interactive rendering of your Laravel application's true execution paths.
- **Change Intelligence**: Understand the exact **Blast Radius** (impact) and execution **Trace** of any class, method, or route.
- **Deterministic AST Analysis**: Uses `nikic/php-parser` to extract code structure without runtime performance hits.
- **AI-Ready Documentation**: Export your codebase logic into token-efficient `llms.txt` and Markdown Workflow Dossiers optimized for LLM consumption.

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

[](#installation)

```
composer require dndark/laravel-logic-map --dev
php artisan vendor:publish --tag=logic-map-config
php artisan vendor:publish --tag=logic-map-full
```

Commands
--------

[](#commands)

```
php artisan logic-map:build          # Build graph snapshot
php artisan logic-map:analyze        # Re-run architectural analysis
php artisan logic-map:export-docs    # Export workflow dossiers & llms.txt context
php artisan logic-map:export-note    # Export a node's Impact/Trace report
php artisan logic-map:clear-cache    # Clear cached snapshots
```

**Access the UI at:** `/logic-map`

API Endpoints
-------------

[](#api-endpoints)

- `GET /logic-map/overview` — Full graph
- `GET /logic-map/subgraph/{id}` — Node neighborhood
- `GET /logic-map/impact/{id}` — Impact blast radius (JSON)
- `GET /logic-map/trace/{id}` — Workflow trace traversal (JSON)
- `GET /logic-map/reports/impact/{id}` — HTML Impact Report UI
- `GET /logic-map/reports/trace/{id}` — HTML Trace Report UI
- *And various JSON/CSV/Markdown export lines...*

⌨️ Keyboard Shortcuts
---------------------

[](#️-keyboard-shortcuts)

KeyAction`1`Graph Mode (Full map)`2`Flow Mode (Request paths only)`3`Risk Mode (Audit hotspots)`4`Zones Mode (High-level module boundaries)`F`Fit graph to view`S`SubGraph mode (on selected node)`H`Toggle Complexity Heatmap`M`Toggle Module Explorer`T`Cycle Themes`⌘K`Focus search`Esc`Close panel / Exit SubGraph`?`Show shortcuts modal📊 View Modes
------------

[](#-view-modes)

Laravel Logic Map provides 4 distinct semantic view modes to help answer different architectural questions:

1. **Graph Mode (`1`)**: Full dependency map. Shows all nodes and all edges perfectly as parsed.
2. **Flow Mode (`2`)**: Workflow paths. Hides utility classes/enums and drops messy edges (like simple model imports) to visualize how requests actually travel through code.
3. **Risk Mode (`3`)**: Hotspot audit. Isolates the top 30% most coupled &amp; complex nodes and expands their 1-hop context.
4. **Zones Mode (`4`)**: Module overview. Aggregates all nodes into high-level logical "supernodes" per module. Double-click a zone to instantly isolate it and see its internal Flow.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10 / 11 / 12

License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance96

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Every ~0 days

Total

14

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c764e6b4a6e5ec990035c3b07503a60ee91112dfbfde41c28108bb72ecba84e?d=identicon)[DNDark12](/maintainers/DNDark12)

---

Top Contributors

[![huynd111](https://avatars.githubusercontent.com/u/167043519?v=4)](https://github.com/huynd111 "huynd111 (28 commits)")

---

Tags

laravelstatic analysisMetricscode qualityarchitecturegraphvisualization

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dndark-laravel-logic-map/health.svg)

```
[![Health](https://phpackages.com/badges/dndark-laravel-logic-map/health.svg)](https://phpackages.com/packages/dndark-laravel-logic-map)
```

###  Alternatives

[laraveldaily/filacheck

Static analysis for Filament projects - detect deprecated patterns and code issues

9016.5k](/packages/laraveldaily-filacheck)[laravel/surveyor

Static analysis tool for Laravel applications.

7639.0k7](/packages/laravel-surveyor)[grazulex/laravel-atlas

Laravel Atlas scans your Laravel project to generate a complete, structured map of its internal components — models, controllers, routes, jobs, observers, events, commands, and more — and exports visual or machine-readable representations in formats like Mermaid, Markdown, JSON, or PDF.

161.7k](/packages/grazulex-laravel-atlas)

PHPackages © 2026

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