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(4mo ago)112.0k↓31%3GPL-3.0PHPPHP ^8.0

Since Aug 21Pushed 4mo 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 yesterday

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

50

—

FairBetter than 95% of packages

Maintenance78

Regular maintenance activity

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity71

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

123d 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.6k203.8M356](/packages/symfony-monolog-bridge)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)

PHPackages © 2026

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