PHPackages                             lemberg/laravel-query-logs - 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. lemberg/laravel-query-logs

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

lemberg/laravel-query-logs
==========================

6.0.1(5y ago)11.1k[1 issues](https://github.com/lemberg/laravel-query-logs/issues)MITPHPPHP &gt;=7.2.5CI failing

Since May 23Pushed 5y ago11 watchersCompare

[ Source](https://github.com/lemberg/laravel-query-logs)[ Packagist](https://packagist.org/packages/lemberg/laravel-query-logs)[ Docs](https://github.com/lemberg/laravel-query-logs)[ RSS](/packages/lemberg-laravel-query-logs/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

Laravel Query Logs
==================

[](#laravel-query-logs)

Log database queries into file.

Requirements
------------

[](#requirements)

- PHP &gt;= `7.0`
- Laravel = `5.4.*|5.5.*`

Getting Started
---------------

[](#getting-started)

Install package via composer

```
$ composer require lemberg/laravel-query-logs

```

### Register Service Provider (Only for Laravel 5.4)

[](#register-service-provider-only-for-laravel-54)

```
'providers' => [
    Lemberg\LaraveQueryLogs\ServiceProvider::class,
],

```

### Publish Configuration File

[](#publish-configuration-file)

```
php artisan vendor:publish --provider="Lemberg\LaravelQueryLogs\ServiceProvider" --tag="config"

```

Usage
-----

[](#usage)

1. Add `QUERY_LOGS=true` to .env file.
2. By default queries will store into `/storage/logs/sql.log` file.
    You can change it by editing the `path` option in `query-log.php` file

Actually that's all:)

License
-------

[](#license)

Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~196 days

Recently: every ~203 days

Total

6

Last Release

1931d ago

Major Versions

1.0.2 → 6.0.02020-11-30

PHP version history (2 changes)1.0.0PHP &gt;=7.0.0

6.0.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/d74ab4876c408295be895cc8a45c1051baa97c96be81bdd01cde10e22a6221c1?d=identicon)[bkhrupa](/maintainers/bkhrupa)

---

Tags

loglaravelquery

### Embed Badge

![Health badge](/badges/lemberg-laravel-query-logs/health.svg)

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

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[hosmelq/laravel-logsnag

Integrate the power of LogSnag's real-time event tracking into your Laravel application.

237.9k](/packages/hosmelq-laravel-logsnag)

PHPackages © 2026

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