PHPackages                             bilhackmac/databases-manager-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. bilhackmac/databases-manager-module

ActiveThelia-module[Database &amp; ORM](/categories/database)

bilhackmac/databases-manager-module
===================================

Allows managing multiple connections to databases

V1.4.0(9y ago)16722LGPL-3.0+PHP

Since Mar 23Pushed 9y ago7 watchersCompare

[ Source](https://github.com/thelia-modules/DatabasesManager)[ Packagist](https://packagist.org/packages/bilhackmac/databases-manager-module)[ RSS](/packages/bilhackmac-databases-manager-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (11)Used By (0)

Thelia 2 Databases Manager module
=================================

[](#thelia-2-databases-manager-module)

Allows managing multiple connections to databases for other modules and provides commands to parse `schema.xml` files with multiple definitions.

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

[](#installation)

### Manually…

[](#manually)

Copy the module into `/local/modules/` directory and be sure that the name of the module is `DatabasesManager`.

### … or with Composer

[](#-or-with-composer)

Add it in your main thelia `composer.json` file.

```
composer require bilhackmac/databases-manager-module:~1.0

```

### Then

[](#then)

Activate it in your thelia administration panel.

Usage
-----

[](#usage)

### 1. schema.xml

[](#1-schemaxml)

Unmodified `schema.xml` files continue to work as expected but you can now add a new root `databases` node instead of `database`.

```

```

### 2. Commands

[](#2-commands)

Databases manager override two Thelia 2 commands and adds one.

```
php Thelia module:generate:model

```

and

```
php Thelia module:generate:sql

```

always work as expected but now handles `databases` and multiples `database` nodes in `schema.xml` files. These commands also add an empty database configuration for every unkown database name in configuration file (e.g. : `anotherDB` in previous `schema.xml`).

```
php Thelia module:schema:recovery

```

can recover `schema.xml` if unexpected exit happens during any of two previous command (e.g. : `Ctrl + C`).

### 3. Configuration

[](#3-configuration)

Access to databases configuration by clicking on `Configure` from backoffice module manager. You can now add/edit/delete databases configurations.
**But be careful**, configuration labels have to be the same as `schema.xml` `database` nodes name, otherwise, models will not be able to find connection to their databases.

You can define database configuration for your current environment (`prod` by default and `dev` when accessing with `index_dev.php`). Environment configuration with the same label as shared configuration overwrite it.
It's can be useful if you don't want that `dev` environment access same external database as `prod` environment.

### 4. Overwite Thelia default configuration

[](#4-overwite-thelia-default-configuration)

**This feature seems to work, but it's not tested.**
If you want connect to another Thelia database than the default one, labeled it `thelia`. By this way, you can have a production database and a development database.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~75 days

Recently: every ~155 days

Total

10

Last Release

3395d ago

### Community

Maintainers

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

---

Top Contributors

[![bilhackmac](https://avatars.githubusercontent.com/u/3740078?v=4)](https://github.com/bilhackmac "bilhackmac (48 commits)")

### Embed Badge

![Health badge](/badges/bilhackmac-databases-manager-module/health.svg)

```
[![Health](https://phpackages.com/badges/bilhackmac-databases-manager-module/health.svg)](https://phpackages.com/packages/bilhackmac-databases-manager-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)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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