PHPackages                             mouf/database.doctrine-dbal-wrapper - 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. mouf/database.doctrine-dbal-wrapper

ActiveMouf-library[Database &amp; ORM](/categories/database)

mouf/database.doctrine-dbal-wrapper
===================================

This package contains wrapper classes that make Doctrine DBAL easy to use in Mouf

v1.2.3(8y ago)0110.5k35MITPHPPHP &gt;=5.3.0

Since Aug 28Pushed 8y ago13 watchersCompare

[ Source](https://github.com/thecodingmachine/database.doctrine-dbal-wrapper)[ Packagist](https://packagist.org/packages/mouf/database.doctrine-dbal-wrapper)[ Docs](https://github.com/thecodingmachine/database.doctrine-dbal-wrapper)[ RSS](/packages/mouf-databasedoctrine-dbal-wrapper/feed)WikiDiscussions 1.2 Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (9)Used By (5)

Doctrine DBAL wrapper classes for Mouf
======================================

[](#doctrine-dbal-wrapper-classes-for-mouf)

This package provides a wrapper around the Doctrine's DBALConnection class for the [Mouf](http://mouf-php.com) PHP framework.

Important: this component has not been tested yet for other connection drivers than PDO\_MYSQL and MSQLI.

When installed, it provides a user-friendly user interface that allows to create / edit your connection to the database.

[![DBConnection](doc/images/db_connection_install.png "Install DBAL/Connection")](doc/images/db_connection_install.png)

Please be aware this is a very simple wrapper. In fact this component is just a simple install task, that will automatically configure a Doctrine/DBAL Connection :

- the **params** property is stored as a PHP field as it's structure is not really defined. It will return an array of connection parameters : database's host, name, and identifiers.

Please note, that those parameters will be stored in Mouf configuration.

- **driver** &amp; **eventManager** are simple classes that has no settable properties. Note that as required by Doctrine, if the ORM layer is included in your project, the entityManager instance will be associated to the same eventManager instance that the connection.
- the **configuration** property is not set by this package.

Other parameters can be defined after the instance has been initialized, please refer to doctrine's documentation for more information : .

Usage
-----

[](#usage)

You can now embed the `dbalConnection` instance anywhere in your code:

```
$stmt = Mouf::getDbalConnection()->query($sql);
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~151 days

Recently: every ~13 days

Total

8

Last Release

3217d ago

### Community

Maintainers

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

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (10 commits)")[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (7 commits)")[![CamilleKoppel](https://avatars.githubusercontent.com/u/49161585?v=4)](https://github.com/CamilleKoppel "CamilleKoppel (1 commits)")[![josealbeatcm](https://avatars.githubusercontent.com/u/183588510?v=4)](https://github.com/josealbeatcm "josealbeatcm (1 commits)")[![xhuberty](https://avatars.githubusercontent.com/u/8350192?v=4)](https://github.com/xhuberty "xhuberty (1 commits)")

---

Tags

databasemoufdbconnection

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mouf-databasedoctrine-dbal-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/mouf-databasedoctrine-dbal-wrapper/health.svg)](https://phpackages.com/packages/mouf-databasedoctrine-dbal-wrapper)
```

###  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)[doctrine/migrations

PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.

4.8k204.8M440](/packages/doctrine-migrations)[scienta/doctrine-json-functions

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

58523.9M36](/packages/scienta-doctrine-json-functions)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-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)

PHPackages © 2026

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