switon/inspector

Request-scoped development inspection with collector payloads and multi-format views for Switon Framework

Maintainers

Package info

github.com/switon-php/inspector

Documentation

pkg:composer/switon/inspector

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-06-06 13:43 UTC

This package is auto-updated.

Last update: 2026-06-07 05:12:34 UTC


README

CI PHP 8.3+

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: InspectorCommand can 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.