Download the PHP package leventcz/laravel-top without Composer
On this page you can find all versions of the php package leventcz/laravel-top. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leventcz/laravel-top
More information about leventcz/laravel-top
Files in leventcz/laravel-top
Package laravel-top
Short Description Real-time monitoring straight from the command line for Laravel applications.
License MIT
Homepage https://github.com/leventcz/laravel-top
Informations about the package laravel-top
Top provides a lightweight solution for real-time monitoring directly from the command line for Laravel applications. It is designed for production environments, enabling you to effortlessly track essential metrics and identify the busiest routes.
How it works
Top listens to Laravel events and saves aggregated data to Redis behind the scenes to calculate metrics. The aggregated data is stored with a short TTL, ensuring that historical data is not retained and preventing Redis from becoming overloaded. During display, metrics are calculated based on the average of the last 5 seconds of data.
Top only listens to events from incoming requests, so metrics from operations performed via queues or commands are not reflected.
Since the data is stored in Redis, the output of the top command reflects data from all application servers, not just the server where you run the command.
Installation
Compatible with Laravel 10, Laravel 11, and Laravel Octane.
Requires PHP 8.2+ | Redis 5.0+
Configuration
You can publish the config file with:
Facade
If you want to access metrics in your application, you can use the Top facade.
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-top with dependencies
ext-pcntl Version *
laravel/framework Version ^10.0|^11.0|^12.0
react/event-loop Version ^1.5