PHPackages                             therencemanzo/slowquerylogger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. therencemanzo/slowquerylogger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

therencemanzo/slowquerylogger
=============================

This librabry will logged all slow queries based on the threshold

v1.0.0(1y ago)05MITPHPPHP &gt;=8.1

Since Feb 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/therencemanzo/slowquery)[ Packagist](https://packagist.org/packages/therencemanzo/slowquerylogger)[ RSS](/packages/therencemanzo-slowquerylogger/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Slow Query Logger
=========================

[](#laravel-slow-query-logger)

A Laravel 11 package for logging slow queries and optimizing database performance.

Features
--------

[](#features)

- **Log Slow Queries**: Logs slow database queries to the database.
- **Paginated Log Viewer**: View slow queries with pagination.
- **Configurable**: Allows configuration of slow query thresholds and route name.
- **Migration Publishing**: Publishes migration files for easy integration with your application.

Installation
------------

[](#installation)

### 1. **Install the Package**

[](#1-install-the-package)

Run the following Composer command to install the package:

```
composer require therencemanzo/slowquerylogger
```

### 2. **Publish the config**

[](#2-publish-the-config)

```
php artisan vendor:publish --provider="TherenceManzo\SlowQueryLogger\SlowQueryLoggerServiceProvider" --tag=config
```

### 3. **Publish the migration**

[](#3-publish-the-migration)

```
php artisan vendor:publish --provider="TherenceManzo\SlowQueryLogger\SlowQueryLoggerServiceProvider" --tag=migrations
```

### 4. **Run the migration**

[](#4-run-the-migration)

```
php artisan migrate
```

### 5. **Configure your .env**

[](#5-configure-your-env)

```
APP_DEBUG=true
```

For security it will disable the routing and viewing if set debug set to false but it will still log and save the slow queries in the background.

Test
----

[](#test)

Go to web browser and &lt;APP\_URL&gt;/slow-queries you can configure the route and threshold in the config(slowquerlogger) file

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance40

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

501d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/280908555?v=4)[TherenceDev](/maintainers/TherenceDev)[@Therencedev](https://github.com/Therencedev)

---

Top Contributors

[![therencemanzo](https://avatars.githubusercontent.com/u/17722709?v=4)](https://github.com/therencemanzo "therencemanzo (9 commits)")

### Embed Badge

![Health badge](/badges/therencemanzo-slowquerylogger/health.svg)

```
[![Health](https://phpackages.com/badges/therencemanzo-slowquerylogger/health.svg)](https://phpackages.com/packages/therencemanzo-slowquerylogger)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
