PHPackages                             abacaphiliac/doctrine-psr-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. [Database &amp; ORM](/categories/database)
4. /
5. abacaphiliac/doctrine-psr-sql-logger

ActiveLibrary[Database &amp; ORM](/categories/database)

abacaphiliac/doctrine-psr-sql-logger
====================================

PSR-3 Compliant Doctrine SQL Logger

1.2.0(4y ago)45.0k2[1 issues](https://github.com/abacaphiliac/doctrine-psr-sql-logger/issues)[2 PRs](https://github.com/abacaphiliac/doctrine-psr-sql-logger/pulls)MITPHPPHP ^7.2 || ^8.0CI failing

Since Jun 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/abacaphiliac/doctrine-psr-sql-logger)[ Packagist](https://packagist.org/packages/abacaphiliac/doctrine-psr-sql-logger)[ RSS](/packages/abacaphiliac-doctrine-psr-sql-logger/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (9)Versions (14)Used By (0)

doctrine-psr-sql-logger
=======================

[](#doctrine-psr-sql-logger)

PSR-3 Compliant Doctrine SQL Logger

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b8aed4f17f15ea8c09d4f8ea1bd2834c71347b11ce01f8cac48ddd5c927f8818/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61626163617068696c6961632f646f637472696e652d7073722d73716c2d6c6f676765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/abacaphiliac/doctrine-psr-sql-logger/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/3e6ecb3e081298c6c96b672eddccff0de8db9d55b84a640cc2e18d7bb74babea/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61626163617068696c6961632f646f637472696e652d7073722d73716c2d6c6f676765722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/abacaphiliac/doctrine-psr-sql-logger/?branch=master)[![Build Status](https://camo.githubusercontent.com/d132dc04837482b2b019f65f1e35e3a3e8e86f6f6075c0969c1474c317a03b5a/68747470733a2f2f7472617669732d63692e6f72672f61626163617068696c6961632f646f637472696e652d7073722d73716c2d6c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/abacaphiliac/doctrine-psr-sql-logger)

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

[](#installation)

```
composer require abacaphiliac/doctrine-psr-sql-logger
```

Usage
-----

[](#usage)

The following configuration snippet will log the query with its parameter types and execution duration. In general, this will be safe to use with parameterized queries, since values will not be printed to the log stream.

```
$logger = new \Psr\Log\NullLogger(); // Get your real logger(s) from a container.
$configuration = new \Doctrine\DBAL\Configuration();
$configuration->setSQLLogger(new \Abacaphiliac\Doctrine\PsrSqlLogger($logger));
```

The following snippet will additionally log parameter values. Be careful to handle sensitive data appropriately.

```
$logger = new \Psr\Log\NullLogger(); // Get your real logger(s) from a container.
$configuration = new \Doctrine\DBAL\Configuration();
$configuration->setSQLLogger(new \Abacaphiliac\Doctrine\PsrSqlParamsLogger($logger));
```

Contributing
------------

[](#contributing)

```
composer update && composer build

```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 54.3% 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 ~277 days

Total

5

Last Release

1784d ago

PHP version history (3 changes)1.0.0PHP ^7.0

1.1.0PHP ^7.1

1.2.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/29004cd917fdd7e4a8cc4ddba16f0bbcd90829513c57fc96e3b4f3fcb53f7ead?d=identicon)[abacaphiliac](/maintainers/abacaphiliac)

---

Top Contributors

[![abacaphiliac](https://avatars.githubusercontent.com/u/1656273?v=4)](https://github.com/abacaphiliac "abacaphiliac (25 commits)")[![holtkamp](https://avatars.githubusercontent.com/u/776405?v=4)](https://github.com/holtkamp "holtkamp (21 commits)")

---

Tags

psrlogdoctrinedbalsql

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/abacaphiliac-doctrine-psr-sql-logger/health.svg)

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[cycle/database

DBAL, schema introspection, migration and pagination

64690.9k31](/packages/cycle-database)[nettrine/dbal

Doctrine DBAL for Nette Framework

322.6M19](/packages/nettrine-dbal)[friendsofdoctrine/dbal-clickhouse

Doctrine DBAL driver for ClickHouse

1141.2M1](/packages/friendsofdoctrine-dbal-clickhouse)

PHPackages © 2026

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