Source: github.com

Laravel Server Timings

Category: Laravel, Laravel

Add Server-Timing header information from within your Laravel apps. Use Git or checkout with SVN using the web URL.

You can install the package via composer: To add server-timing header information, you need to add the \BeyondCode\ServerTiming\Middleware\ServerTimingMiddleware::class, middleware to your HTTP Kernel.

By default, the middleware measures only three things, to keep it as light-weight as possible: Once the package is successfully intstalled, you can see your timing information in the developer tools of your browser. Here's an example from Chrome: If you want to provide additional measurements, you can use the start and stop methods.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners