phpunit/php-timer
Lightweight timing utility extracted from PHPUnit. Start/stop a timer to get a Duration with formatted time plus seconds, milliseconds, microseconds, and nanoseconds. Includes resource usage formatting (time + memory) for a measured block or since request start.
For executives: "This battle-tested utility provides zero-maintenance performance metrics for critical features, turning subjective 'is it slow?' questions into data-driven decisions. It integrates in minutes with Composer, requires no infrastructure, and leverages proven methodology from PHPUnit – saving engineering hours while enabling smarter performance investments."
For engineering: "Just composer require --dev and start/stop timers in 3 lines of code. Get precise durations in seconds/milliseconds/nanoseconds and automatic memory usage reports – no custom implementation needed. Used by PHPUnit’s core team for years, with minimal dependencies and rock-solid test coverage. Perfect for quick profiling during development or CI checks."
How can I help you explore Laravel packages today?