PHPackages                             rokde/laravel-slow-query-logger - 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. rokde/laravel-slow-query-logger

AbandonedArchivedLibrary

rokde/laravel-slow-query-logger
===============================

Slow Query Logger for Laravel

1.0.1(7y ago)2938.2k13[1 issues](https://github.com/rokde/laravel-slow-query-logger/issues)MITPHPPHP ^7.1.3

Since Jun 28Pushed 7y ago2 watchersCompare

[ Source](https://github.com/rokde/laravel-slow-query-logger)[ Packagist](https://packagist.org/packages/rokde/laravel-slow-query-logger)[ RSS](/packages/rokde-laravel-slow-query-logger/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/5734fb44b263163338d88e5919a2f3d167243a81971485512f2e7bceb4d9d7bd/68747470733a2f2f706f7365722e707567782e6f72672f726f6b64652f6c61726176656c2d736c6f772d71756572792d6c6f676765722f762f737461626c652e737667)](https://packagist.org/packages/rokde/laravel-slow-query-logger) [![Latest Unstable Version](https://camo.githubusercontent.com/d024c5e2570fd2fe2e616c7981a59df0a399d97a1334b6f760dd8f6cde22b5ba/68747470733a2f2f706f7365722e707567782e6f72672f726f6b64652f6c61726176656c2d736c6f772d71756572792d6c6f676765722f762f756e737461626c652e737667)](https://packagist.org/packages/rokde/laravel-slow-query-logger) [![License](https://camo.githubusercontent.com/b9c2cb569b33f8ee0c0ff88b3f59f75a76a7e363fc50cb66bb703b308c00cb67/68747470733a2f2f706f7365722e707567782e6f72672f726f6b64652f6c61726176656c2d736c6f772d71756572792d6c6f676765722f6c6963656e73652e737667)](https://packagist.org/packages/rokde/laravel-slow-query-logger) [![Total Downloads](https://camo.githubusercontent.com/4164b670ac5cd3befc2c833fa87aee31d17df8227d4bed7286f637d5179bb68f/68747470733a2f2f706f7365722e707567782e6f72672f726f6b64652f6c61726176656c2d736c6f772d71756572792d6c6f676765722f646f776e6c6f6164732e737667)](https://packagist.org/packages/rokde/laravel-slow-query-logger)

Quickstart
----------

[](#quickstart)

```
composer require rokde/laravel-slow-query-logger

```

Look into your `laravel.log` file to see your messy queries.

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

[](#installation)

Add to your composer.json following lines

```
"require": {
	"rokde/laravel-slow-query-logger": "^1.*"
}

```

Run `php artisan vendor:publish --provider="Rokde\LaravelSlowQueryLogger\LaravelSlowQueryLoggerProvider"`

Configuration
-------------

[](#configuration)

### `enabled`

[](#enabled)

Enable the slow queries logger.

You can set this value through environment variable `LARAVEL_SLOW_QUERY_LOGGER_ENABLED`. It is `false` by default.

### `channel`

[](#channel)

Sets the channel to log in.

You can set this value through environment variable `LARAVEL_SLOW_QUERY_LOGGER_CHANNEL`. It is `single` by default.

### `log-level`

[](#log-level)

Set the log-level for logging the slow queries.

You can set this value through environment variable `LARAVEL_SLOW_QUERY_LOGGER_LOG_LEVEL`. It is `debug` by default.

### `time-to-log`

[](#time-to-log)

Only log queries longer than this value in microseconds.

You can set this value through environment variable `LARAVEL_SLOW_QUERY_LOGGER_TIME_TO_LOG`. It is `0.7` by default.

Usage
-----

[](#usage)

Start your application and look into your logs to identify the slow queries.

###  Health Score

34

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Every ~485 days

Total

3

Last Release

2584d ago

Major Versions

0.0.1 → 1.0.02018-07-25

PHP version history (2 changes)0.0.1PHP &gt;=5.5.9

1.0.0PHP ^7.1.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4946056?v=4)[Robert Kummer](/maintainers/rokde)[@rokde](https://github.com/rokde)

---

Tags

laravelloggerqueryquery-analyzerslow-queries

### Embed Badge

![Health badge](/badges/rokde-laravel-slow-query-logger/health.svg)

```
[![Health](https://phpackages.com/badges/rokde-laravel-slow-query-logger/health.svg)](https://phpackages.com/packages/rokde-laravel-slow-query-logger)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

402385.8k5](/packages/rtconner-laravel-likeable)[naoray/eloquent-model-analyzer

Helpful methods to gain more information about eloquent model classes.

16429.8k1](/packages/naoray-eloquent-model-analyzer)[qlick/laravel-full-calendar

Laravel helper for FullCalendar.io. Fork of https://github.com/maddhatter/laravel-fullcalendar

1345.5k](/packages/qlick-laravel-full-calendar)[bjorn-voesten/ciphersweet-for-laravel

1611.6k](/packages/bjorn-voesten-ciphersweet-for-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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