PHPackages                             ahmedhsieb/analyzer - 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. ahmedhsieb/analyzer

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

ahmedhsieb/analyzer
===================

Visualize your Laravel request lifecycle as an interactive graph

v1.0.0(2mo ago)015↓75%MITPHPPHP &gt;=8.0CI failing

Since May 2Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Ahmedhsieb/analyzer)[ Packagist](https://packagist.org/packages/ahmedhsieb/analyzer)[ GitHub Sponsors](https://github.com/mrmarchone)[ RSS](/packages/ahmedhsieb-analyzer/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Analyzer
========

[](#analyzer)

This is a Laravel dev tool package that analyzes your app and builds a graph of routes, controllers, services, and more. Analyzer is a Laravel developer tool that scans your architecture and visualizes route-to-code flow as an interactive graph.

It is designed for monorepos and modular codebases where routes may live in `packages`, `modules`, `extensions`, microservices, or any custom folder naming convention.

Attribution
-----------

[](#attribution)

This project is based on and references the original Laravel Brain project: `https://github.com/laramint/laravel-brain`

Analyzer includes my own updates and additional features on top of that foundation.

Highlights
----------

[](#highlights)

- Full request lifecycle tracing: route -&gt; controller -&gt; service -&gt; repository -&gt; model -&gt; events/jobs
- Monorepo-aware route discovery across nested Laravel roots
- Interactive viewer under `/_analyzer`
- Command and schedule discovery
- Broadcast channel discovery
- Query tracing (Eloquent + raw)
- Per-route tabs, source view, flow view, export (PNG/Mermaid)
- Watch mode
- Scoped analysis filters by path, route, group, and controller

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

[](#installation)

```
composer require --dev ahmedhsieb/analyzer
```

Commands
--------

[](#commands)

### Analyze full project

[](#analyze-full-project)

```
php artisan analyzer:analyze
```

### Setup login (secure viewer)

[](#setup-login-secure-viewer)

```
php artisan analyzer:setup-auth
```

Or non-interactive:

```
php artisan analyzer:setup-auth --username=admin --password=secret
```

Then open:

```
/_analyzer/login

```

### Change login credentials

[](#change-login-credentials)

```
php artisan analyzer:change-auth
```

Or non-interactive:

```
php artisan analyzer:change-auth --current-username=admin --current-password=oldpass --username=newadmin --password=newpass
```

### Watch mode

[](#watch-mode)

```
php artisan analyzer:analyze --watch
php artisan analyzer:analyze --watch --interval=5
```

### Filter by path

[](#filter-by-path)

```
php artisan analyzer:analyze --path=modules/Billing
php artisan analyzer:analyze --path=packages/Shared/src/Routes/web.php
```

### Analyze specific route(s)

[](#analyze-specific-routes)

```
php artisan analyzer:analyze --route=/api/orders
php artisan analyzer:analyze --route="GET /api/orders,POST /api/orders"
```

### Analyze specific group/prefix

[](#analyze-specific-groupprefix)

```
php artisan analyzer:analyze --group=api
php artisan analyzer:analyze --group="admin,v1"
```

### Analyze specific controller

[](#analyze-specific-controller)

```
php artisan analyzer:analyze --controller=OrderController
php artisan analyzer:analyze --controller="Modules\\Billing\\Http\\Controllers\\InvoiceController"
```

Notes:

- Alias: `analyzer:scan`
- Filters can be combined.

Viewer URL
----------

[](#viewer-url)

Open:

```
/_analyzer

```

Registered routes
-----------------

[](#registered-routes)

```
GET  /_analyzer/api/source
POST /_analyzer/api/scan
GET  /_analyzer/{any?}

```

Output files
------------

[](#output-files)

Analysis output is written to:

```
storage/app/analyzer/

```

Files:

```
.graph-manifest.json
.graph-all.json
.graph-{tab-id}.json

```

Security
--------

[](#security)

The package routes/commands are loaded only in local environment by default.

Development
-----------

[](#development)

```
composer install
cd frontend && npm install && npm run build
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance84

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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

83d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/110618751?v=4)[Ahmed Osama](/maintainers/Ahmedhsieb)[@Ahmedhsieb](https://github.com/Ahmedhsieb)

---

Top Contributors

[![Ahmedhsieb](https://avatars.githubusercontent.com/u/110618751?v=4)](https://github.com/Ahmedhsieb "Ahmedhsieb (5 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ahmedhsieb-analyzer/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

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

The official AI SDK for Laravel.

1.0k3.2M246](/packages/laravel-ai)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k14](/packages/laravel-surveyor)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

985.4k](/packages/zidbih-laravel-deadlock)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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