leventcz/laravel-top
Real-time CLI monitoring for Laravel. Runs php artisan top to track key request metrics, busiest routes, and performance across all servers. Aggregates recent Laravel event data in Redis with short TTL, designed for production and Octane.
Architecture fit:
Integration feasibility:
vendor:publish), and no external services required. Composer install + Redis setup is the only prerequisite. Facade API (Top::http(), Top::routes()) enables programmatic access for custom integrations (e.g., internal dashboards, CI/CD pipelines). Lightweight and non-intrusive.recording_mode=always in non-HTTP contexts (e.g., CLI commands, queues). No validation for Redis connection resilience or failure modes. Laravel 13.x compatibility is confirmed but lacks Octane-specific testing. Potential for Redis write contention in high-throughput environments.Technical risk:
Key questions:
maxmemory-policy, lru-eviction)?recording_mode=always been tested in non-HTTP contexts (e.g., CLI commands, queues) in Laravel 13.x? How does it interact with Octane’s event loop or Laravel 13.x’s async workers?startRecording)?Top::routes() or Top::http() during high load? Does it support Laravel 13.x’s dependency injection changes?Stack fit:
Migration path:
maxmemory-policy).composer require leventcz/laravel-top.php artisan vendor:publish --tag="top".recording_mode (default: runtime).php artisan top in production-like conditions (load testing with expected traffic patterns).Top::http(), Top::routes()) in Laravel 13.x contexts (e.g., middleware, service containers).recording_mode=runtime to avoid unintended metric collection.recording_mode=always if needed for facade-based integrations.Compatibility:
Sequencing:
averageDuration exceeds 500ms).recording_mode as needed.maxmemory, eviction policies) based on usage patterns.Dependencies:
Illuminate\Http\RequestHandled and similar events. Confirm no conflicts with custom event listeners.Maintenance:
How can I help you explore Laravel packages today?