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 Query Monitor Laravel Package

supliu/laravel-query-monitor

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Debugging & Performance Optimization: Accelerates root-cause analysis for slow database queries, reducing mean time to resolution (MTTR) during development or staging phases.
  • Developer Productivity: Enables real-time query monitoring without requiring complex setup (e.g., database profiling tools like Laravel Debugbar or New Relic), lowering the barrier for junior developers.
  • Build vs. Buy: Justifies a "build" decision for teams needing lightweight, self-hosted query monitoring over SaaS alternatives (e.g., ScoutAPM) when budget or compliance constraints exist.
  • Roadmap Prioritization: Validates investment in database optimization initiatives by providing empirical data on query patterns (e.g., N+1 queries, inefficient joins).
  • Use Cases:
    • Debugging complex Eloquent relationships or raw SQL issues.
    • Identifying bottlenecks in high-traffic endpoints during load testing.
    • Auditing third-party package queries (e.g., "Why is this package hitting the DB 50 times?").

When to Consider This Package

  • Avoid If:
    • You need production-grade monitoring (this is dev/staging-only; no alerts, retention, or user segmentation).
    • Your team requires historical query analysis (use Laravel Debugbar or paid tools like SolarWinds).
    • You’re on a shared hosting environment without terminal access or custom ports.
    • You need query filtering (e.g., ignore specific tables/models) or performance metrics (execution time, memory).
  • Look Elsewhere If:
    • You’re using Laravel Horizon/Queues and need query monitoring for async jobs (this is HTTP/request-scoped).
    • Your stack includes non-PHP services (e.g., Node.js APIs) requiring unified monitoring.
    • You need team collaboration features (e.g., sharing query logs with stakeholders).

How to Pitch It (Stakeholders)

For Executives: "This package lets our dev team see every database query in real-time during testing, helping us catch slow or inefficient queries before they hit production. It’s like a ‘flight recorder’ for our database—free, lightweight, and runs in our existing Laravel setup. For ~$0 in tooling costs, we can reduce debugging time by 30%+ on performance issues, directly improving feature velocity."

For Engineering: *"Laravel Query Monitor is a terminal-based query profiler that runs alongside your app. No browser extensions or complex setup—just run php artisan laravel-query-monitor in one terminal while using the app in another. It shows:

  • Raw SQL (with bindings).
  • Timestamps for each query.
  • Customizable host/port for local or CI environments. Perfect for debugging N+1 queries, Eloquent quirks, or third-party package behavior. MIT-licensed, no vendor lock-in—just install and go."*
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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
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