elephox/inspector

Commands and endpoints to inspect your Elephox application.

v0.2.1 2022-03-04 01:27 UTC

This package is auto-updated.

Last update: 2024-11-10 06:02:02 UTC


README

Elephox Logo

Inspector helps debugging your Elephox application.

Installation

Simply add the InspectorRegistrar to your Core bootstrap:

// bin/run

// create your console app builder
$builder = ConsoleApplicationBuilder::create()
	->addLogging()
	->addWhoops()
;

// load your app commands
$builder->commands->loadFromNamespace("App\\Commands");

// load the inspector commands
$builder->commands->loadFromNamespace("Elephox\\Inspector\\Commands");

Commands

# list all application routes
phox inspector:routes

# serve your application on port 8080 in production mode
phox inspector:serve --port=8080 --env=production