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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners