switon / inspector
Request-scoped development inspection with collector payloads and multi-format views for Switon Framework
v1.0.0
2026-06-06 13:43 UTC
Requires
- php: >=8.3
- psr/event-dispatcher: ^1.0
- switon/composer-extra: ^1.0
- switon/core: ^1.0
- switon/di: ^1.0
- switon/event: ^1.0
- switon/http: ^1.0
- switon/kernel: ^1.0
- switon/log: ^1.0
- switon/redis: ^1.0
- switon/router: ^1.0
Requires (Dev)
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- switon/testing: ^1.0
README
Switon's runtime inspector for request-scoped payload capture, collector discovery, and live debug links.
Highlights
- Request tracing: the inspector hooks into the request lifecycle and response output.
- Collector loading: collectors can be discovered and overridden by package metadata.
- Payload storage: captured payloads can be stored in Redis or the filesystem.
- Debug links: request and response headers can expose inspector links.
- Watch mode:
InspectorCommandcan follow activity and filter it by app or target.
Installation
composer require --dev switon/inspector
Quick Start
curl -i http://<host>:<port>/api/users
Open the returned X-Inspector-Link URL to inspect the captured request.
Docs: https://docs.switon.dev/latest/inspector
License
MIT.