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

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

luffluo/laravel-query-logger
============================

A dev tool to log all queries for laravel application.

v1.2.2(5y ago)0521MITPHP

Since Dec 20Pushed 5y agoCompare

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

READMEChangelogDependenciesVersions (7)Used By (0)

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

[](#laravel-query-logger)

> A dev tool to log all queries for Laravel application.

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

[](#installation)

```
$ composer require luffluo/laravel-query-logger --dev

```

Usage
-----

[](#usage)

`config/app.php` add `query_logger => true` to open.

```
$ tail -f ./storage/logs/laravel.log

```

```
[2018-12-20 14:52:13] local.INFO: ============ URL: http://laravel.app/discussions ===============
[2018-12-20 14:52:14] local.DEBUG: [800μs] select count(*) as aggregate from `discussions` where `discussions`.`deleted_at` is null
[2018-12-20 14:52:14] local.DEBUG: [1.07ms] select * from `discussions` where `discussions`.`deleted_at` is null order by `is_top` desc, `created_at` desc limit 15 offset 0
[2018-12-20 14:52:14] local.DEBUG: [3.63s] select `tags`.*, `taggables`.`taggable_id` as `pivot_taggable_id`, `taggables`.`tag_id` as `pivot_tag_id` from `tags` inner join `taggables` on `tags`.`id` = `taggables`.`tag_id` where `taggables`.`taggable_id` in ('1', '2', '3', '4', '5', '6', '7', '8') and `taggables`.`taggable_type` = 'App\\Models\\Discussion' order by `order_column` asc
[2018-12-20 14:52:14] local.DEBUG: [670μs] select * from `users` where `users`.`id` in ('1', '2', '4') and `users`.`deleted_at` is null
...

```

Other
-----

[](#other)

You will like it.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~101 days

Total

6

Last Release

1900d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2228fec8e6c6c17b7db1f7e336b1e7757be01b51ede1c34c63feecbee0d1ebc8?d=identicon)[luffluo](/maintainers/luffluo)

---

Top Contributors

[![luffluo](https://avatars.githubusercontent.com/u/31039427?v=4)](https://github.com/luffluo "luffluo (7 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

1938.5M261](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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