PHPackages                             galase/laravel-flow-docs - 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. galase/laravel-flow-docs

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

galase/laravel-flow-docs
========================

Static flow documentation generator for Laravel applications.

v1.3.0(1mo ago)15MITPHPPHP ^8.1

Since May 20Pushed 1mo agoCompare

[ Source](https://github.com/Galase/laravel-flow-docs)[ Packagist](https://packagist.org/packages/galase/laravel-flow-docs)[ RSS](/packages/galase-laravel-flow-docs/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

Laravel Flow Docs
=================

[](#laravel-flow-docs)

Static HTML flow documentation for Laravel applications.

The package analyzes PHP source code without executing business rules. It maps controllers, services/actions/use cases, models, migrations, foreign keys, inferred joins, dependency injection, route bindings, internal calls, and line-level flow notes into presentation-friendly HTML.

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

[](#installation)

```
composer require galase/laravel-flow-docs --dev
php artisan vendor:publish --tag=flow-docs-config
php artisan flow-docs:generate
```

Open:

```
public/docs/flow/index.html

```

Database diagram:

```
public/docs/flow/database/diagram.html

```

The generated pages include a top navigation bar and index sections. The database diagram supports zoom controls, reset, Ctrl + scroll zoom, and drag-to-pan navigation. Each table detected from migrations also gets its own page under `public/docs/flow/database/tables/`.

Command
-------

[](#command)

```
php artisan flow-docs:generate
php artisan flow-docs:generate --services
php artisan flow-docs:generate --controllers
php artisan flow-docs:generate --output=public/docs/flow
php artisan flow-docs:generate --no-routes
```

The command requires `config/flow-docs.php` to exist in the host Laravel application. If it has not been published, it exits with:

```
Run: php artisan vendor:publish --tag=flow-docs-config

```

Configuration
-------------

[](#configuration)

Published config:

```
return [
    'output_path' => public_path('docs/flow'),
    'app_dir' => app_path(),
    'migration_dirs' => [database_path('migrations')],
    'project_name' => config('app.name', 'Laravel'),
    'language' => 'pt_BR', // Supported now: pt_BR, en, es. Catalogs live in Support/I18n/Languages.
    'controller_namespaces' => ['App\\Http\\Controllers'],
    'service_namespaces' => ['App\\Services', 'App\\Http\\Services', 'App\\Actions', 'App\\Domain'],
    'model_namespaces' => ['App\\Models', 'App'],
    'named_gateways' => ['Lytex', 'PagarMe', 'Stripe', 'PayPal'],
];
```

Static Analysis
---------------

[](#static-analysis)

The analyzer detects:

- controllers by configured namespace, `*Controller` suffix, and `Controllers/` folders, including modular monolith paths;
- services by configured namespace, service/action/use-case suffixes, and `Services/`, `Actions/`, `UseCases/`, `Domain/`, or `Application/` folders;
- dependency injection in constructors and typed method parameters, including promoted properties such as `protected Algo $algo`;
- models from configured namespaces, `Models/` folders, Eloquent inheritance, direct queries, typed returns, direct returns, and internal method returns;
- database tables, columns and foreign keys from migrations;
- Eloquent relations declared in models;
- joins used in code through query builder chains.

Example model inference:

```
private function aluno($id)
{
    return Aluno::where('id', $id)->first();
}

public function fluxo($id)
{
    $aluno = $this->aluno($id);
}
```

In this case, `$aluno` is documented as `Aluno`, inferred from `$this->aluno()`.

Limits
------

[](#limits)

This package is intentionally conservative. It does not execute application code and may not infer types hidden behind containers, repositories without return types, interfaces, magic methods, or highly dynamic calls.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance88

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Total

4

Last Release

58d ago

Major Versions

v0.1.0 → v1.1.02026-05-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/81abe74729af30adb445b088b05a1ed1de1ff445098e244af2b2bba783a917d7?d=identicon)[Galase](/maintainers/Galase)

---

Top Contributors

[![Galase](https://avatars.githubusercontent.com/u/67228665?v=4)](https://github.com/Galase "Galase (6 commits)")

---

Tags

laravelstatic analysisdocumentationflow-docs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/galase-laravel-flow-docs/health.svg)

```
[![Health](https://phpackages.com/badges/galase-laravel-flow-docs/health.svg)](https://phpackages.com/packages/galase-laravel-flow-docs)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M186](/packages/laravel-mcp)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k14](/packages/laravel-surveyor)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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