Skip to content

Inspector Endpoints

Inspector endpoints query live application state. All routes are under /inspect/api.

Core Endpoints

MethodPathDescription
GET/routesAll registered routes
GET/route/checkTest route matching
GET/paramsApplication parameters
GET/configDI configuration
GET/eventsEvent listeners
GET/classesDeclared classes
GET/objectInstantiate and dump object
GET/filesFile explorer
GET/phpinfoPHP info output

Database

MethodPathDescription
GET/tableDatabase tables list
GET/table/{name}Table schema + paginated records

Translations

MethodPathDescription
GET/translationsTranslation catalogs
PUT/translationsUpdate a translation

Request

MethodPathDescription
PUT/requestRe-execute a captured request
POST/curl/buildBuild cURL command from request

Git

MethodPathDescription
GET/git/summaryBranch, SHA, remotes, branches
GET/git/logLast 20 commits
POST/git/checkoutSwitch branch
POST/git/commandRun git pull/fetch

Commands

MethodPathDescription
GET/command/List available commands
POST/command/Execute a command

Composer

MethodPathDescription
GET/composer/composer.json + composer.lock
GET/composer/inspectPackage details
POST/composer/requireInstall a package

Cache

MethodPathDescription
GET/cache/View cache entry
DELETE/cache/Delete cache key
POST/cache/clearClear all cache

OPcache

MethodPathDescription
GET/opcache/OPcache status and configuration

Authorization

MethodPathDescription
GET/authorizationGuards, role hierarchy, voters, security config

See Security & Authorization for details.

Elasticsearch

MethodPathDescription
GET/elasticsearchCluster health + indices list
GET/elasticsearch/{name}Index detail (mappings, settings, stats)
POST/elasticsearch/searchExecute search query against an index
POST/elasticsearch/queryExecute raw Elasticsearch query

Redis

MethodPathDescription
GET/redis/pingTest Redis connection
GET/redis/infoServer info (INFO command, optional ?section=)
GET/redis/db-sizeNumber of keys in current DB
GET/redis/keysBrowse keys via SCAN (?pattern=*&limit=100&cursor=0)
GET/redis/getGet key value (type-aware) with TTL
DELETE/redis/deleteDelete a key
POST/redis/flush-dbFlush current database

Requires \Redis (phpredis extension) in the DI container.

Code Coverage

MethodPathDescription
GET/coverage/Collect and return PHP code coverage data (requires pcov or xdebug)
GET/coverage/fileRead a source file (query param: path)

MCP (AI Integration)

MethodPathDescription
POST/mcp/JSON-RPC 2.0 handler
GET/mcp/settingsGet MCP enabled status
PUT/mcp/settingsSet MCP enabled status

Multi-Service Proxying

Inspector requests with ?service=<name> are proxied to the registered external service's URL via InspectorProxyMiddlewareAppDevPanel\Api\Inspector\Middleware\InspectorProxyMiddlewareInspector Proxy HTTP middleware.final API · class · implements MiddlewareInterface. Requests without ?service or with ?service=local are handled locally.

Released under the MIT License.