PHPackages                             thecodingmachine/dbal-universal-module - 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. thecodingmachine/dbal-universal-module

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

thecodingmachine/dbal-universal-module
======================================

Cross-framework module for doctrine/dbal

v0.4.1(8y ago)0531MITPHPPHP &gt;=7.1

Since Mar 8Pushed 8y ago6 watchersCompare

[ Source](https://github.com/thecodingmachine/dbal-universal-module)[ Packagist](https://packagist.org/packages/thecodingmachine/dbal-universal-module)[ RSS](/packages/thecodingmachine-dbal-universal-module/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

DBAL universal module
=====================

[](#dbal-universal-module)

This package integrates Doctrine DBAL in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.

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

[](#installation)

```
composer require thecodingmachine/dbal-universal-module

```

Once installed, you need to register the [`TheCodingMachine\DbalServiceProvider`](src/DbalServiceProvider.php) into your container.

If your container supports thecodingmachine/discovery integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.

Introduction
------------

[](#introduction)

This service provider is meant to provide one connection to your database. If you need more than one connection to your database, please configure your container directly.

Expected values / services
--------------------------

[](#expected-values--services)

This *service provider* expects the following configuration / services to be available:

NameCompulsoryDescription`dbal.host`*no*The database host. Defaults to *localhost*`dbal.user`*no*The database user. Defaults to *root*`dbal.password`*no*The database password. Defaults to *empty*`dbal.port`*no*The database port. Defaults to *3306*`dbal.dbname`**yes**The database name.`dbal.charset`*no*The database character set.`dbal.driverOptions`*no*An array of driver options. Defaults to `[1002 =>"SET NAMES utf8"]``dbal.params`*no*An array of parameters directly passed to the `Connection` object. If this parameter is set, all parameters above are ignored.`Doctrine\DBAL\Driver`*no*The DBAL driver to use to create the connection. Defaults to DBAL's PDO\_MySQL Driver serviceProvided services
-----------------

[](#provided-services)

This *service provider* provides the following services:

Service nameDescription`Doctrine\DBAL\Connection`A DBAL connection to your databaseExtended services
-----------------

[](#extended-services)

This *service provider* does not extend any service.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.2% 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 ~215 days

Total

4

Last Release

3121d ago

PHP version history (2 changes)v0.2.0PHP &gt;=7.0

v0.4.0PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

![](https://avatars.githubusercontent.com/u/1847918?v=4)[TheCodingMachine](/maintainers/thecodingmachine)[@thecodingmachine](https://github.com/thecodingmachine)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (15 commits)")[![xhuberty](https://avatars.githubusercontent.com/u/8350192?v=4)](https://github.com/xhuberty "xhuberty (5 commits)")[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (2 commits)")

### Embed Badge

![Health badge](/badges/thecodingmachine-dbal-universal-module/health.svg)

```
[![Health](https://phpackages.com/badges/thecodingmachine-dbal-universal-module/health.svg)](https://phpackages.com/packages/thecodingmachine-dbal-universal-module)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[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.

4585.8M4](/packages/martin-georgiev-postgresql-for-doctrine)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14385.8k4](/packages/flow-php-doctrine-dbal-bulk)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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