PHPackages                             wheregroup/doctrine-dbal-shims - 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. wheregroup/doctrine-dbal-shims

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

wheregroup/doctrine-dbal-shims
==============================

Doctrine DBAL / ORM convenience for mixed multi-connection setups

v1.2.0(2y ago)010.9k↓45%1MITPHPPHP &gt;=8.1

Since Oct 17Pushed 2y ago2 watchersCompare

[ Source](https://github.com/WhereGroup/doctrine-dbal-shims)[ Packagist](https://packagist.org/packages/wheregroup/doctrine-dbal-shims)[ RSS](/packages/wheregroup-doctrine-dbal-shims/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (1)

Oracle session variable preinitialization
-----------------------------------------

[](#oracle-session-variable-preinitialization)

Included is an event subscriber that automatically sets Oracle session variables required by DBAL and Doctrine ORM to work properly (date formats etc).

Unlike the DBAL default implementation, this can be added globally, and will check / only act on Oracle DBAL connections. All other connection types will be completely left alone.

This makes it easier to use in mixed multi-connection setups, and indeed safe to use with zero Oracle connections.

Usage
-----

[](#usage)

With `doctrine/dbal-bundle` installed, you can register the included `AddOracleSessionInitPass`into your Symfony container build, or use the PassIndex to do it for you.

```
# Bundle class
public function build(ContainerBuilder $container)
{

    PassIndex::autoRegisterAll($container);

}
```

```
# Kernel class
public function buildContainer()
{
    $container = parent::buildContainer();

    PassIndex::autoRegisterAll($container);

    return $container;
}
```

### Standalone DBAL

[](#standalone-dbal)

Without Symfony and the Doctrine bundle, compiler passes won't work.

The OnDemandOracleSessionInit subscriber instance needs to be added to the connection's event manager in some other way to do anything.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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 ~557 days

Total

4

Last Release

734d ago

PHP version history (3 changes)v1.0PHP &gt;=5.3

v1.1.0PHP &gt;=5.5

v1.2.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![werrolf](https://avatars.githubusercontent.com/u/24895932?v=4)](https://github.com/werrolf "werrolf (24 commits)")[![Phocacius](https://avatars.githubusercontent.com/u/3438255?v=4)](https://github.com/Phocacius "Phocacius (2 commits)")

### Embed Badge

![Health badge](/badges/wheregroup-doctrine-dbal-shims/health.svg)

```
[![Health](https://phpackages.com/badges/wheregroup-doctrine-dbal-shims/health.svg)](https://phpackages.com/packages/wheregroup-doctrine-dbal-shims)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[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)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)

PHPackages © 2026

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