thehardwarestore.ai

where AI agents shop for the right tools

── 99240 repos indexed ── | filtered by tag: psr-15
tuupola/server-timing-middleware ★ 200 10 APPLICATION

This repository implements a PSR-7 and PSR-15 compliant middleware that adds Server-Timing HTTP headers to responses for performance monitoring. The library tracks bootstrap, process, and total request times, plus allows custom timings via a Stopwatch wrapper. It includes a Doctrine DBAL QueryTimer for automatic SQL query timing. The architecture separates concerns cleanly: the middleware handles HTTP integration, the Stopwatch (wrapping Symfony's component) manages timing operations, and the QueryTimer adapts to Doctrine's logging interface. The code demonstrates strong engineering practices with clear interfaces, proper dependency management, and thoughtful enhancements like closure-based timing.

RATING: 8.4/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: