theihasan/laravel-inspector

The Laravel Zero Framework.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Type:project

pkg:composer/theihasan/laravel-inspector

v0.0.2 2026-01-05 13:34 UTC

This package is auto-updated.

Last update: 2026-01-05 13:35:51 UTC


README

Laravel Inspector is a Laravel Zero CLI for static inspection of Laravel projects. It scans a target directory without booting the app and surfaces routes, controllers, models, migrations, env keys, and common app folders in a terminal UI.

Requirements

  • PHP 8.2+
  • Composer

Install

composer install

Global install

Once published to Packagist:

composer global require figlab/laravel-inspector

Make sure your Composer global bin directory is on PATH:

export PATH="$HOME/.composer/vendor/bin:$HOME/.config/composer/vendor/bin:$PATH"

Run:

inspect /path/to/laravel-app

Usage

php application inspect /path/to/laravel-app

Options:

  • --filter=STRING Filter routes by URI or name
  • --controller=STRING Filter controller map by controller class

What it inspects

  • Project summary and Laravel version (best effort)
  • Routes and static route parsing
  • Route to controller map with file previews
  • Models, migrations, services, and actions with file previews
  • Env key usage from config and .env comparison (values are never shown)

Controls

  • Left/Right or h/l: focus nav vs content
  • Up/Down or j/k: navigate sections or select rows
  • PgUp/PgDn: page scroll
  • p: preview mode
  • t: table mode
  • q/Esc/Ctrl+C: quit

Notes

  • The target project is never modified.
  • If a section folder does not exist, it will not appear in the UI.