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

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

thecodingmachine/tdbm-universal-module
======================================

Cross-framework module for thecodingmachine/tdbm

026PHP

Since Dec 15Pushed 8y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/a3246e98173c379b8aeb17aaa3b268328e81831791db2d44b577114a0b5d3bdc/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f7464626d2d756e6976657273616c2d6d6f64756c652f762f737461626c65)](https://packagist.org/packages/thecodingmachine/tdbm-universal-module)[![Latest Unstable Version](https://camo.githubusercontent.com/32a9d6c2e73daad2b97addb6bf20ceb91b5df6195fb11e07b5e798307d448636/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f7464626d2d756e6976657273616c2d6d6f64756c652f762f756e737461626c65)](https://packagist.org/packages/thecodingmachine/tdbm-universal-module)[![License](https://camo.githubusercontent.com/0463192f121a0e9ff24520119428329d4d9e0a59139a7f836ad363526045e102/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f7464626d2d756e6976657273616c2d6d6f64756c652f6c6963656e7365)](https://packagist.org/packages/thecodingmachine/tdbm-universal-module)[![Build Status](https://camo.githubusercontent.com/7c41e1b23effbabb8cc650a056443194969610482f6e0f26b96c237f0244014c/68747470733a2f2f7472617669732d63692e6f72672f746865636f64696e676d616368696e652f7464626d2d756e6976657273616c2d6d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thecodingmachine/tdbm-universal-module)[![Coverage Status](https://camo.githubusercontent.com/7633672b1d7bd7cd0a38d50b43a0781bdb90b0779f5ec8bd562ce8a7ef59cbd9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f746865636f64696e676d616368696e652f7464626d2d756e6976657273616c2d6d6f64756c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/thecodingmachine/tdbm-universal-module?branch=master)

TDBM universal module
=====================

[](#tdbm-universal-module)

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

Tutorial
--------

[](#tutorial)

Looking for a tutorial to get started? Check out the [TDBM 5 + container-interop/service-providers install guide](https://thecodingmachine.github.io/tdbm/doc/install_service-provider.html).

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

[](#installation)

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

```

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

If your container supports [thecodingmachine/discovery](https://github.com/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 integrate TDBM in your application. It will register the "tdbm:generate" command in the console (`vendor/bin/app_console`) and register all generated DAOs in the container.

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

[](#expected-values--services)

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

NameCompulsoryDescription`tdbm.daoNamespace`*no*The namespace of the DAOs. If not specified, it will be guessed from your composer.json autoload section.`tdbm.beanNamespace`*no*The namespace of the beans. If not specified, it will be guessed from your composer.json autoload section.`Doctrine\DBAL\Connection`*yes*The database connection.`Doctrine\Common\Cache\Cache`*yes*The cache service.`Symfony\Component\Console\Application`*yes*The console application.Provided services
-----------------

[](#provided-services)

This *service provider* provides the following services:

**One service is created for each of your DAOs. The name of the service is the fully qualified name of your DAOs.**

If you have a `App\Dao\UserDao` class generated by TDBM, then that class is also available in the container using `$container->get("App\Dao\UserDao")`.

Service nameDescription`TheCodingMachine\TDBM\TDBMService`The TDBMService`TheCodingMachine\TDBM\Configuration`The TDBM configuration`TheCodingMachine\TDBM\Utils\NamingStrategyInterface`The naming strategy for the beans`TheCodingMachine\TDBM\Services\DaoDumper`Utility class used to optimize the service provider`TheCodingMachine\TDBM\Utils\GeneratorListenerInterface[]`An array of generator listeners (contains the DaoDumper and can be extended by other providers to add more).Extended services
-----------------

[](#extended-services)

This *service provider* extends those services:

NameCompulsoryDescription`Symfony\Component\Console\Application`*yes*A command is added to the serviceProject template courtesy of [thecodingmachine/service-provider-template](https://github.com/thecodingmachine/service-provider-template)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### 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 (9 commits)")

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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