# itsgoingd/clockwork

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/itsgoingd-clockwork).**

5,941 stars · 335 forks · PHP · MIT

## Links

- GitHub: https://github.com/itsgoingd/clockwork
- Homepage: https://underground.works/clockwork
- awesome-repositories: https://awesome-repositories.com/repository/itsgoingd-clockwork.md

## Description

Clockwork is a PHP development debugging tool that collects and displays runtime data from server-side middleware in a browser-based interface. It captures request details, performance metrics, logs, database queries, and stack traces for HTTP requests, commands, queue jobs, and tests without requiring modifications to application code.

The tool provides a client-side rendered toolbar and full web interface for inspecting collected data, including a searchable performance timeline viewer, an HTTP request monitor with timing and response details, and inline variable logging helpers that return values while displaying interactive object trees with stack traces. Clockwork integrates with Xdebug for detailed performance profiling and collects browser navigation timings and Web Vitals to merge with server-side data for full-stack debugging.

Collaborative debugging is supported through a share service that uploads serialized debug data and generates public URLs for team review. The tool transmits data as structured JSON between the server-side collector and browser client, and includes a code execution profiler that measures runtime of code blocks with named timeline events.

## Tags

### Development Tools & Productivity

- [Runtime Debugging Tools](https://awesome-repositories.com/f/development-tools-productivity/php-development-tools/runtime-debugging-tools.md) — Inspecting and analyzing PHP application runtime data including performance metrics, logs, database queries, and stack traces during development.
- [Code Execution Profilers](https://awesome-repositories.com/f/development-tools-productivity/code-execution-profilers.md) — Measures and visualizes runtime of code blocks with named events and start/end markers on a timeline. ([source](https://cdn.jsdelivr.net/gh/itsgoingd/clockwork@main/README.md))
- [PHP Runtime Data Collectors](https://awesome-repositories.com/f/development-tools-productivity/custom-debug-collectors/php-runtime-data-collectors.md) — Captures and stores runtime data such as logs, variables, and Xdebug profiles for real-time review in a browser-based interface.
- [Inline Expression Debugging](https://awesome-repositories.com/f/development-tools-productivity/debugging-profiling-testing/debugging-diagnostics/debugging-inspection-tools/debugging-and-inspection-tools/runtime-debugging/inline-expression-debugging.md) — Provides a function that logs its argument and returns it, enabling debugging without breaking expression chains.
- [Inline Expression Tracing](https://awesome-repositories.com/f/development-tools-productivity/debugging-profiling-testing/debugging-diagnostics/debugging-inspection-tools/debugging-and-inspection-tools/runtime-debugging/inline-expression-debugging/inline-expression-tracing.md) — Logs and inspects variables directly in PHP code using helper functions that return values while displaying interactive object trees with stack traces.
- [Multi-Channel Runtime Inspectors](https://awesome-repositories.com/f/development-tools-productivity/http-request-inspectors/multi-channel-runtime-inspectors.md) — Collects and displays request data, performance metrics, logs, database queries, and events for HTTP requests, commands, queue jobs, and tests. ([source](https://underground.works/clockwork))
- [Multi-Context Request Profilers](https://awesome-repositories.com/f/development-tools-productivity/php-application-profilers/multi-context-request-profilers.md) — Collects and visualizes detailed performance timelines, database queries, and stack traces for HTTP requests, commands, and queue jobs.
- [Framework Debugging Toolbars](https://awesome-repositories.com/f/development-tools-productivity/state-debugging-tools/framework-debugging-toolbars.md) — Provides a client-side rendered toolbar showing request information and linking to the full debug interface. ([source](https://underground.works/clockwork))
- [Inline Debugging Loggers](https://awesome-repositories.com/f/development-tools-productivity/logger-variable-generators/inline-debugging-loggers.md) — Ships an inline variable logging helper that returns its argument for debugging in expressions. ([source](https://cdn.jsdelivr.net/gh/itsgoingd/clockwork@main/README.md))
- [Debugger Profiling Controllers](https://awesome-repositories.com/f/development-tools-productivity/terminal-automation/terminal-session-management/profiling-session-controllers/debugger-profiling-controllers.md) — Controls Xdebug profiling sessions programmatically, toggling and retrieving detailed performance profiles from the debugger.

### System Administration & Monitoring

- [Application Runtime Data Loggers](https://awesome-repositories.com/f/system-administration-monitoring/log-output-formatting/runtime-logger-toggles/application-runtime-data-loggers.md) — Collects and stores runtime data including performance metrics, logs, database queries, and stack traces. ([source](https://cdn.jsdelivr.net/gh/itsgoingd/clockwork@main/README.md))
- [Application Performance Timelines](https://awesome-repositories.com/f/system-administration-monitoring/execution-path-visualization/thread-execution-state-visualizers/execution-timeline-visualizers/application-performance-timelines.md) — Presents a searchable visual timeline of all collected runtime data including custom profiling events. ([source](https://underground.works/clockwork))
- [Multi-Channel Request Profilers](https://awesome-repositories.com/f/system-administration-monitoring/performance-profiling-tools/profile-perturbation-analyzers/web-request-profiling/multi-channel-request-profilers.md) — Monitors HTTP requests, commands, queue jobs, and tests with detailed timing, performance timelines, and Xdebug profiling integration.
- [Arbitrary Data Type Loggers](https://awesome-repositories.com/f/system-administration-monitoring/audit-logs/agent-trajectory-logs/data-warehouse-logging/arbitrary-data-type-loggers.md) — Ships a helper function that logs any data type and returns it for inline debugging. ([source](https://underground.works/clockwork))
- [Browser Navigation Timings Collectors](https://awesome-repositories.com/f/system-administration-monitoring/global-metric-registries/custom-metric-collectors/user-experience-metric-collectors/browser-navigation-timings-collectors.md) — Collects browser navigation timings and Web Vitals to complement server-side performance data for full-stack debugging.

### Graphics & Multimedia

- [Client Side Rendering](https://awesome-repositories.com/f/graphics-multimedia/graphics-engines-rendering/rendering/systems/dom-web-rendering-strategies/client-side-rendering.md) — Renders the debug toolbar and full interface in the browser using JavaScript, processing JSON data into interactive visualizations.
- [Application Performance Timelines](https://awesome-repositories.com/f/graphics-multimedia/web-timeline-visualizers/application-performance-timelines.md) — Presents a searchable timeline of application execution events, including custom profiling markers and client-side Web Vitals.

### Software Engineering & Architecture

- [Performance Timeline Recorders](https://awesome-repositories.com/f/software-engineering-architecture/event-driven-architectures/performance-timeline-recorders.md) — Records and organizes runtime events with start/end markers into a chronological timeline for performance profiling.

### Web Development

- [Debug Data Inspectors](https://awesome-repositories.com/f/web-development/api-data-collection-interfaces/debug-data-inspectors.md) — Provides a browser-based web interface for inspecting collected request and performance data. ([source](https://cdn.jsdelivr.net/gh/itsgoingd/clockwork@main/README.md))
- [Runtime Data Interceptors](https://awesome-repositories.com/f/web-development/request-interception-middleware/runtime-data-interceptors.md) — Intercepts HTTP requests, commands, queue jobs, and tests via middleware to capture runtime data without modifying application code.

### Part of an Awesome List

- [Debugging Session Sharing](https://awesome-repositories.com/f/awesome-lists/productivity/collaboration-and-sharing/debugging-session-sharing.md) — Uploads serialized debug data to an external service and returns a public URL for collaborative debugging sessions.
- [Testing and Debugging](https://awesome-repositories.com/f/awesome-lists/devtools/testing-and-debugging.md) — Profiles and debugs applications via browser integration.

### Business & Productivity Software

- [Browser Performance Collectors](https://awesome-repositories.com/f/business-productivity-software/client-side-data-synchronization/data-collections/collection-side-effect-pipelines/browser-performance-collectors.md) — Collects browser navigation timings and Web Vitals to complement server-side performance data for full-stack debugging.

### Networking & Communication

- [Outgoing Request Monitors](https://awesome-repositories.com/f/networking-communication/http-request-debugging/outgoing-request-monitors.md) — Displays outgoing HTTP request details with timing and response data alongside server-side debug information.

### Testing & Quality Assurance

- [HTTP Client Monitoring](https://awesome-repositories.com/f/testing-quality-assurance/http-request-clients/http-client-monitoring.md) — Captures and displays outgoing HTTP request details with timing and response data. ([source](https://underground.works/))
- [Xdebug Profilers](https://awesome-repositories.com/f/testing-quality-assurance/performance-profilers/xdebug-profilers.md) — Integrates with Xdebug to toggle and view detailed performance profiles from the development interface. ([source](https://underground.works/clockwork))
