PHPackages                             marqant-lab/graphql-sql-log - 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. marqant-lab/graphql-sql-log

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

marqant-lab/graphql-sql-log
===========================

Lighthouse GraphQL SQL Log(s).

v0.0.4(5y ago)1755MITPHP

Since Jul 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/marqant-lab/graphql-sql-log)[ Packagist](https://packagist.org/packages/marqant-lab/graphql-sql-log)[ RSS](/packages/marqant-lab-graphql-sql-log/feed)WikiDiscussions master Synced today

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

Lighthouse GraphQL SQL Log(s).
==============================

[](#lighthouse-graphql-sql-logs)

What is it?
-----------

[](#what-is-it)

This package contains SQL logging for GraphQL queries and mutations.
You will get all executed queries at response.

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

[](#installation)

Require the package through composer.

```
$ composer require marqant-lab/graphql-sql-log
```

### Example

[](#example)

Example of response data:

```
{
    "data": {
        ...
    },
    "extensions": [
        {
            "sqlInfo": {
                "executed_queries_count": 7,
                "executed_queries": [
                    ...
                    {
                        "query": "select * from `users` where `users`.`id` = ? limit 1",
                        "bindings": [
                            2
                        ],
                        "time": 3.48
                    }
                    ...
                ]
            }
        }
    ]
}
```

Tests
-----

[](#tests)

To run tests, you first need to set up a sqlite database that we use to get snapshots of the database state. Run the following command from within your project root to create the sqlite database.

```
$ touch database/database.sqlite
```

If you want to execute package tests add this to the phpunit.xml

```

            ./vendor/marqant-lab/graphql-sql-log/tests

```

And after you can check it by executing:

```
$ php artisan test --group=GraphQLSQLLog
or
$ phpunit --group=GraphQLSQLLog
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~11 days

Total

4

Last Release

2091d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13aba1f5a025bc1217e8a41a21ca1db8e20e45373882a4e9e8c2f366bfcfe9c4?d=identicon)[marqant-lab](/maintainers/marqant-lab)

---

Top Contributors

[![DmitrySidorenkoShim](https://avatars.githubusercontent.com/u/8822805?v=4)](https://github.com/DmitrySidorenkoShim "DmitrySidorenkoShim (3 commits)")[![tjventurini](https://avatars.githubusercontent.com/u/4708070?v=4)](https://github.com/tjventurini "tjventurini (1 commits)")

### Embed Badge

![Health badge](/badges/marqant-lab-graphql-sql-log/health.svg)

```
[![Health](https://phpackages.com/badges/marqant-lab-graphql-sql-log/health.svg)](https://phpackages.com/packages/marqant-lab-graphql-sql-log)
```

###  Alternatives

[overtrue/laravel-query-logger

A dev tool to log all queries for laravel application.

413307.5k6](/packages/overtrue-laravel-query-logger)[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)[stayallive/lighthouse-graphql-hive

Performance monitoring Lighthouse with GraphQL Hive.

2223.3k](/packages/stayallive-lighthouse-graphql-hive)

PHPackages © 2026

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