leventcz/laravel-top
Real-time, lightweight monitoring for Laravel from the CLI. Listens to request events, aggregates short-lived metrics in Redis, and displays 5-second averages across all app servers. Ideal for production to spot load, latency, and busiest routes.
Architecture fit:
Integration feasibility:
vendor:publish), and no external services required. Composer install + Redis setup is the only prerequisite.recording_mode=always in non-HTTP contexts (e.g., CLI commands). No validation for Redis connection health during runtime. Laravel 13.x compatibility is confirmed but untested in Octane or multi-server environments.Technical risk:
Key questions:
recording_mode=always been tested in non-HTTP contexts (e.g., CLI commands, queues) in Laravel 13.x?Stack fit:
predis/predis or phpredis extension (standard in Laravel stacks).Migration path:
composer require leventcz/laravel-top:^1.3.0.php artisan vendor:publish --tag="top") if using non-default Redis.php artisan top in staging to validate metrics collection.Compatibility:
recording_mode=always is tested).Sequencing:
php artisan top) in a non-production environment.Top::routes() for route performance).Top::startRecording() during deployments).Maintenance:
Support:
Scaling:
maxmemory-policy) at >10k RPS.redis_memory_used and redis_commands_processed to avoid bottlenecks.Failure modes:
0 values due to TTL cleanup (expected behavior).Ramp-up:
php artisan top). Facade methods follow Laravel patterns.How can I help you explore Laravel packages today?