Download the PHP package gladehq/laravel-query-lens without Composer

On this page you can find all versions of the php package gladehq/laravel-query-lens. 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-lens

QueryLens

The self-hosted query performance platform for Laravel -- with AI-powered optimization, automated index recommendations, and CI pipeline regression detection.

PHP Version Laravel Version Tests Latest Version on Packagist License


Why QueryLens


How QueryLens Compares

All features included. No paid tiers. MIT licensed. Community-driven.

Feature QueryLens Debugbar Telescope Pulse Nightwatch
Deployment Self-hosted Self-hosted Self-hosted Self-hosted Cloud
Price Free Free Free Free Subscription
EXPLAIN Analysis Deep + human-readable No No No No
Index Recommendations Automated No No No No
Regression Detection CI-integrated No No No Limited
AI Query Optimization OpenAI-compatible No No No No
Transaction Tracking Full lifecycle No Yes No No
Filament Plugin Native panel integration No No No No
Request Sampling Configurable rate No Yes Yes N/A
Alerting Log, Mail, Slack No No No Yes
N+1 Detection Automatic Yes Yes No No
Code Origin Tracing File + line number Yes Yes No No
Request Waterfall Visual timeline Yes No No No

Features

Dashboard Overview

Real-time query monitoring dashboard with stats overview, query list, and performance ratings. Supports live polling, search, and filtering by query type, duration, and slow status.

EXPLAIN Analysis with Human-Readable Output

Run EXPLAIN on any captured query directly from the dashboard. Results are parsed into human-readable descriptions explaining what the database engine is doing -- table scans, index usage, join strategies, and row estimates.

Index Recommendation Engine

Analyzes query patterns over configurable time windows and recommends specific indexes to create. Outputs ready-to-run CREATE INDEX statements with impact estimates based on actual query frequency and duration.

Query Regression Detection and CI Integration

Compare query performance between time periods to detect regressions. Integrates with CI/CD pipelines via the query-lens:check-regression command. Supports webhook notifications for automated alerting when performance degrades.

AI-Powered Query Optimization

Submit slow queries to any OpenAI-compatible API for optimization suggestions. Returns rewritten SQL, explanation of changes, and estimated performance improvement. Results are cached to avoid redundant API calls.

Transaction Tracking

Track database transaction lifecycle -- begin, commit, rollback events with duration, nesting depth, and query count. Associates queries with their enclosing transaction for debugging deadlocks and long-running transactions.

Filament Panel Integration

Native Filament v3 plugin with real pages, Table Builder, Chart Widgets, and Stats Overview. Register with a single line in your panel configuration. Works alongside the standalone dashboard.

Request Waterfall Visualization

Visual timeline of all queries within a single HTTP request, showing execution order, duration bars, and overlap detection. Identifies sequential queries that could be parallelized.

Performance Trend Tracking

Track P50, P95, and P99 latency over time with configurable granularity (hourly or daily). Identify slow degradation patterns before they become incidents. Top queries ranked by total impact (frequency multiplied by duration).


Quick Start

1. Install the package

2. Publish configuration and migrations

3. Run migrations

4. Enable in your environment

5. Visit the dashboard

Open /query-lens in your browser.


Configuration

The configuration file is published to config/query-lens.php. Key options:

Storage Driver

Sampling Rate

Controls what fraction of requests have their queries recorded. 1.0 records every request. 0.1 records 10%. The decision is made once per request so all queries within a sampled request are captured together.

Authentication

By default, the dashboard is restricted to localhost. For production, configure a Laravel Gate:

AI Provider Setup

Works with any OpenAI-compatible API endpoint. AI features are entirely optional -- the package is fully functional without them.

Transaction Tracking

Alert Channels


Artisan Commands

query-lens:aggregate

Pre-calculates hourly and daily performance aggregates for trend charts and top query rankings. Schedule this to run hourly in your app/Console/Kernel.php:

query-lens:prune

Cleans up old query data based on the configured retention period. Schedule daily:

query-lens:suggest-indexes

Analyzes recorded query patterns and recommends database indexes:

query-lens:check-regression

Detects query performance regressions by comparing current period against the previous period. Designed for CI/CD pipelines:

Returns exit code 1 when regressions are detected, making it suitable for CI pipeline gates.


Filament Integration

QueryLens includes a native Filament v3 plugin. Filament is optional -- the package works without it.

Register the plugin

Customize

The plugin provides:


Requirements


Documentation

Read complete documentation at Documentation.


Contributing

Contributions are welcome. Please submit pull requests against the master branch. Run the test suite before submitting:


License

The MIT License (MIT). See LICENSE for details.


Credits

Developed by Dulitha Rajapaksha for GladeHQ.


All versions of laravel-query-lens with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^9.0|^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.2
illuminate/http Version ^9.0|^10.0|^11.0|^12.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 gladehq/laravel-query-lens contains the following files

Loading the files please wait ...