Commands
Run application commands directly from the debug panel — tests, static analysis, and composer scripts.

Available Command Types
| Type | Description |
|---|---|
| PHPUnit | Run unit tests with JSON-formatted output |
| Codeception | Run Codeception tests with JSON reporter |
| Psalm | Run Psalm static analysis with JSON report |
| Composer scripts | All scripts from composer.json (auto-discovered) |
| Bash | Execute arbitrary shell commands |
How It Works
Commands are automatically discovered from two sources:
- Registered commands — PHPUnit, Codeception, Psalm (if configured in the adapter)
- Composer scripts — All
scriptsentries fromcomposer.jsonare exposed ascomposer/{scriptName}commands
Click a command button to execute it. Output is displayed in real-time.
API Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /inspect/api/command | List available commands |
| POST | /inspect/api/command?command=composer/test | Execute a command |
Response format:
json
{
"status": "ok",
"result": "PHPUnit 11.0.0 ...\nOK (42 tests, 100 assertions)",
"error": ""
}TIP
PHPUnit and Codeception commands use custom JSON reporters for structured output in the panel.