Download the PHP package abirhossain/laravel-query-watchdog without Composer

On this page you can find all versions of the php package abirhossain/laravel-query-watchdog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-query-watchdog

Laravel Query Watchdog

Laravel Query Watchdog is a Laravel 10-13 compatible package for monitoring slow database queries in production-like environments.

Features

Installation

Quick Start

  1. Enable query monitoring and alerts in .env.
  2. Configure dashboard access with allowed emails or a custom authorizer.
  3. Generate traffic and open /query-watchdog.

Example .env:

Notification Channel Abstraction

Channels are configured using QUERY_WATCHDOG_ALERT_CHANNELS.

You can add custom channels by extending the dispatcher map in your app via container rebinding.

Dashboard Authorization Gate

By default, dashboard routes are protected by:

The package defines the viewQueryWatchdog gate and grants access when either:

  1. app environment is local and QUERY_WATCHDOG_DASHBOARD_ALLOW_LOCAL=true
  2. authenticated user email is listed in QUERY_WATCHDOG_DASHBOARD_ALLOWED_EMAILS
  3. custom authorizer class (invokable) returns true

Production Tuning Defaults

Recommended starting values:

Maintenance

Prune old records:

Dashboard Column Reference

Recent Fingerprints

Column Meaning
Hash Short prefix of the fingerprint hash that identifies a normalized query shape. Click to open detail view.
Last Seen Relative time since this fingerprint was last captured.
Latest Duration Duration in milliseconds of the most recent event for this fingerprint.
Route / Command Laravel route name or console command name associated with the latest event. n/a means context was not available.

Top Fingerprints

Column Meaning
Fingerprint Fingerprint hash preview and a truncated canonical SQL shape for grouped queries.
Operation SQL operation type detected from normalized SQL (select, insert, update, delete, or other).
Count Total sampled/captured event count for this fingerprint in the selected window.
Max p95 (ms) Highest p95 latency bucket recorded in the selected window. Useful for tail-latency monitoring.
Max duration (ms) Single highest event duration recorded for this fingerprint in the selected window.

Fingerprint Detail: Recent Aggregates

Column Meaning
Bucket Minute-level aggregation timestamp for the metric row.
Count Number of events captured in that bucket.
Slow Number of events in that bucket with duration greater than or equal to QUERY_WATCHDOG_SLOW_QUERY_MS.
p50 Median latency (50th percentile) for events in the bucket.
p95 95th percentile latency for events in the bucket.
p99 99th percentile latency for events in the bucket.
Avg Arithmetic mean latency for events in the bucket.
Max Highest single-event latency in the bucket.

Fingerprint Detail: Recent Events

Column Meaning
Time Timestamp when the query event was captured.
Duration Single event duration in milliseconds.
Connection Database connection name used by the query.
Route / Command Route or command context tied to this event.
SQL Truncated raw SQL captured for that event.

All versions of laravel-query-watchdog with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package abirhossain/laravel-query-watchdog contains the following files

Loading the files please wait ...