PHPackages                             d3/oxid-sql-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. d3/oxid-sql-logger

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

d3/oxid-sql-logger
==================

Returns all SQL queries in the browser.

2.1.0(2mo ago)111.8k↓50%3GPL-3.0PHPPHP ^8.0

Since Aug 21Pushed 2mo agoCompare

[ Source](https://github.com/d3datadevelopment/oxid-sql-logger)[ Packagist](https://packagist.org/packages/d3/oxid-sql-logger)[ RSS](/packages/d3-oxid-sql-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (10)Versions (14)Used By (3)

Oxid eShop SQL Logger
---------------------

[](#oxid-eshop-sql-logger)

Returns all SQL queries into console of a Browser.

Install
-------

[](#install)

`composer require --dev d3/oxid-sql-logger`

Usage
-----

[](#usage)

Just set the function `D3StartSQLLog()` somewhere and from that point on all SQLs will be logged.

```
\D3StartSQLLog('specific log message');

$db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
$list = $db->getAll('SELECT * FROM oxarticles WHERE oxprice < ? LIMIT 100', [49.99]);

\D3StopSQLLog();
```

Screenshots
-----------

[](#screenshots)

Browser:

[![Example all sqls](https://raw.githubusercontent.com/d3datadevelopment/oxid-sql-logger/master/img/screenshot-a.jpg)](https://raw.githubusercontent.com/d3datadevelopment/oxid-sql-logger/master/img/screenshot-a.jpg)

CLI:

[![Example CLI](https://raw.githubusercontent.com/d3datadevelopment/oxid-sql-logger/master/img/screenshot-cli.jpg)](https://raw.githubusercontent.com/d3datadevelopment/oxid-sql-logger/master/img/screenshot-cli.jpg)

Configuration
-------------

[](#configuration)

Add the sections to the config.inc.php of the shop if needed:

```
$this->SqlLoggerGUIHandlers = [
    \Monolog\Handler\BrowserConsoleHandler::class,
    \D3\OxidSqlLogger\Handler\d3FirePHPHandler::class
];
```

Standard handlers are BrowserConsoleHandler and d3FirePHPHandler.

```
$this->SqlLoggerCLIHandlers = [
    ...
];
```

Standard handler is StreamHandler.

```
$this->d3FirePHPOptions = [
    \D3\OxidSqlLogger\Handler\d3FirePHPHandler::ADD_TRACE
];
```

Credits
-------

[](#credits)

Many thanks to [Tobias Matthaiou](https://github.com/TumTum/oxid-sql-logger) for his inspiration.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance85

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 59.4% 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 ~238 days

Recently: every ~441 days

Total

11

Last Release

77d ago

Major Versions

1.3.3 → 2.0.02024-02-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4621553?v=4)[D³ Data Development](/maintainers/d3datadevelopment)[@d3datadevelopment](https://github.com/d3datadevelopment)

---

Top Contributors

[![SeifertDaniel](https://avatars.githubusercontent.com/u/9882400?v=4)](https://github.com/SeifertDaniel "SeifertDaniel (38 commits)")[![TumTum](https://avatars.githubusercontent.com/u/225997?v=4)](https://github.com/TumTum "TumTum (24 commits)")[![tmloberon](https://avatars.githubusercontent.com/u/28302826?v=4)](https://github.com/tmloberon "tmloberon (2 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/d3-oxid-sql-logger/health.svg)

```
[![Health](https://phpackages.com/badges/d3-oxid-sql-logger/health.svg)](https://phpackages.com/packages/d3-oxid-sql-logger)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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