Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Top Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Eliminates the need for custom-built monitoring tools or third-party APM solutions (e.g., New Relic, Datadog) for lightweight, real-time Laravel performance insights. Reduces operational overhead and licensing costs while maintaining compatibility with Laravel 10–13.x and Octane.
  • Feature Roadmap: Enables performance-driven sprints by surfacing bottlenecks (e.g., busiest routes, memory spikes) in real-time, directly informing optimization backlogs. The Laravel 13.x compatibility ensures alignment with modern Laravel ecosystems, reducing technical debt for teams upgrading.
  • Use Cases:
    • Incident Response: CLI-driven diagnostics during production outages (e.g., php artisan top to identify route-specific latency).
    • Deployment Validation: Post-deploy checks for performance regressions without dashboard setup.
    • Developer Productivity: Embed metrics in CI/CD pipelines (e.g., fail builds if averageDuration exceeds thresholds).
    • Cost Optimization: Replaces expensive APM tools for teams with <10k RPS or those prioritizing simplicity over advanced features.
  • Tech Stack Alignment: Leverages existing Laravel/Redis infrastructure, avoiding vendor lock-in. The facade API (Top::http(), Top::routes()) enables seamless integration with internal dashboards or CLI tools, reducing fragmentation.

When to Consider This Package

  • Adopt if:
    • Your stack uses Laravel 10–13.x + Redis and you need instant, CLI-based production insights without historical data requirements.
    • You’re troubleshooting HTTP request bottlenecks (routes, memory, DB queries) and want to avoid dashboard complexity.
    • Your team prefers low-overhead monitoring (no agents, minimal setup) and can tolerate Redis dependency.
    • You’re using Laravel Octane or need lightweight metrics for serverless/Laravel Vapor environments.
  • Look elsewhere if:
    • You require long-term trend analysis, error tracking, or distributed tracing (use Datadog/New Relic).
    • Your traffic exceeds 10k RPS (risk of Redis write contention; test scaling first).
    • You lack Redis in your stack (adds dependency) or CLI access to production servers.
    • Your team uses Laravel <10.x (unsupported) or needs queue/command metrics (this package ignores them).
    • You need enterprise support/SLAs (this is open-source only).

How to Pitch It (Stakeholders)

Executives: "This package delivers real-time Laravel performance insights in 60 seconds—just run php artisan top—to cut troubleshooting time by 50%+ and eliminate $5k/year APM costs. Compatible with Laravel 13.x, it’s a strategic fit for teams modernizing their stack while keeping monitoring lightweight. No external services, no agents—just instant CLI diagnostics for production incidents, deployments, and sprint retrospectives."

Engineering: "Seamlessly integrates with Laravel 10–13.x and Redis to show live HTTP metrics (routes, memory, DB queries) via CLI. Zero setup: install, run top, and get insights. The facade (Top::routes(), Top::http()) lets you embed metrics in custom tools. Laravel 13.x support ensures long-term viability. Ideal for quick diagnostics—no dashboards, no overhead. Warning: Redis dependency and no queue/command metrics (use for HTTP-only workloads)."

Developers: "Need to debug a slow endpoint? Run php artisan top and see real-time route performance—no logs, no dashboards. Works with Laravel Octane and Vapor. Facade API lets you add metrics to your own CLI tools. Pro tip: Pipe output to Slack for post-deploy alerts. Limitations: Only HTTP metrics; Redis required."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai