Laravel Server Timing

screenshot of Laravel Server Timing

Add Server-Timing header information from within your Laravel apps.

Overview

The Laravel Server Timing package is a powerful tool designed for developers looking to optimize their Laravel applications. With the ability to measure various timing metrics, this package allows for more informed decisions based on real performance data. By integrating three primary measurements—bootstrap time, application response time, and total response time—it streamlines performance monitoring, enabling developers to pinpoint bottlenecks with ease.

This lightweight middleware is straightforward to implement, requiring minimal configuration to get started. With the information it provides, developers can enhance the performance of their applications while ensuring a smooth user experience.

Features

  • Easy Installation: Quickly install the package via Composer to get started without any hassle.

  • Lightweight Measurement: By default, the middleware measures only three essential time metrics to ensure minimal performance overhead.

  • Custom Measurements: Use start and stop methods to add custom timing events, making it easy to monitor Blade view compilation time.

  • Set Duration: The ability to set precise measured durations in milliseconds allows for more accurate performance tracking.

  • Textual Information Support: You can add textual data without the need for a duration, providing additional context for your timing.

  • Configuration Flexibility: Easily publish and modify the configuration file to enable or disable the middleware as needed.

  • Browser Integration: View timing information directly in your browser's developer tools for immediate analysis and debugging.

  • Community Support: Access a range of resources, including changelogs and contribution guidelines, to get help and improve the package further.