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

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

phamphu232/query-logger
=======================

Laravel package to log all committed SQL queries.

02PHP

Since Jul 21Pushed 10mo agoCompare

[ Source](https://github.com/phamphu232/QueryLogger)[ Packagist](https://packagist.org/packages/phamphu232/query-logger)[ RSS](/packages/phamphu232-query-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

QueryLogger
===========

[](#querylogger)

Laravel package to log all SQL queries

1. Install the package
----------------------

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

```
composer require phamphu232/query-logger

```

2. Publish configuration and migration
--------------------------------------

[](#2-publish-configuration-and-migration)

```
php artisan vendor:publish --provider="PhamPhu232\QueryLogger\QueryLoggerServiceProvider"

```

3. Configure the package
------------------------

[](#3-configure-the-package)

```
config/query_logger.php

```

4. Run migration
----------------

[](#4-run-migration)

```
php artisan migrate

```

5. Add PDO::MYSQL\_ATTR\_LOCAL\_INFILE =&gt; true to database connection
------------------------------------------------------------------------

[](#5-add-pdomysql_attr_local_infile--true-to-database-connection)

```
'options' => extension_loaded('pdo_mysql') ? array_filter([
    PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
    PDO::MYSQL_ATTR_LOCAL_INFILE => true,
]) : [],

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance40

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![phamphu232](https://avatars.githubusercontent.com/u/5160865?v=4)](https://github.com/phamphu232 "phamphu232 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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