PHPackages                             hoannc54/laravel-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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. hoannc54/laravel-query-logger

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

hoannc54/laravel-query-logger
=============================

Slow Query Logger for Laravel

1.0.5(5y ago)0114MITPHPPHP ^7.1.3

Since Oct 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hoannc54/laravel-query-logger)[ Packagist](https://packagist.org/packages/hoannc54/laravel-query-logger)[ RSS](/packages/hoannc54-laravel-query-logger/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

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

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

Quickstart
----------

[](#quickstart)

```
composer require hoannc54/laravel-query-logger

```

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

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

[](#installation)

Add to your composer.json following lines

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

```

Run `php artisan vendor:publish --provider="Workable\QueryLogger\QueryLoggerProvider"`

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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~8 days

Total

6

Last Release

2045d ago

### Community

Maintainers

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

---

Top Contributors

[![hoannc54](https://avatars.githubusercontent.com/u/10738135?v=4)](https://github.com/hoannc54 "hoannc54 (6 commits)")

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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