PHPackages                             carlinhus/database-config-bundle - 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. carlinhus/database-config-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

carlinhus/database-config-bundle
================================

Allows management of Symfony's container configuration from the database

1.0.2(9y ago)042MITPHP

Since Dec 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/carlinhus/databaseConfigBundle)[ Packagist](https://packagist.org/packages/carlinhus/database-config-bundle)[ Docs](https://github.com/carlinhus/databaseConfigBundle)[ RSS](/packages/carlinhus-database-config-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

carlinhusDatabaseConfigBundle
=============================

[](#carlinhusdatabaseconfigbundle)

**Attention!** This bundle was previously know as FlexyDatabaseConfigBundle. Make sure to update your composer.json project file to reflect the name change.

---

carlinhusDatabaseConfigBundle allows you to store configurations from the configuration tree of a bundle and parameters in a database table. Those configurations and parameters will override those defined in the `app/config/config.yml` and `app/config/parameters.yml` files.

Configurations are all cached using Symfony's container caching mechanism and do not hit the database.

Content
-------

[](#content)

- Installation
- How to use

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

[](#installation)

1. Add this to your composer.json :

```
    "require": {
        "carlinhus/database-config-bundle": "dev-master"
    }
```

2. Run a composer update :

```
composer update
```

3. Register the bundle in your AppKernel.php :

```
public function registerBundles()
{
        new Carlinhus\DatabaseConfigBundle\CarlinhusDatabaseConfigBundle(),
}
```

4. Extend the getContainerBuilder() method in AppKernel.php :

```
use Carlinhus\DatabaseConfigBundle\DependencyInjection\Compiler\ContainerBuilder;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
...
protected function getContainerBuilder()
{
        return new ContainerBuilder(new ParameterBag($this->getKernelParameters()));
}
```

5. Update the database schema :

```
app/console doctrine:schema:update --force
```

How to use
----------

[](#how-to-use)

### Add a configuration to the database

[](#add-a-configuration-to-the-database)

carlinhusDatabaseConfigBundle reproduces the configuration tree of a bundle in the database table named `container_config`. If you want to add a configuration in the database table, you have to first add the extension name in the `container_extension` table. After that, you will have to add each parent node of the configuration tree that leads to the configuration you have to override.

For example, if you have the following configuration and you want to override `project_title` :

```
twig:
    globals:
         project_title: My project title
```

First, we have to add `twig` to the `container_extension` table :

idname1twigThen, we add every node that leads to `project_title` in the `container_config` table :

idparent\_idextension\_idnamevalue1*NULL*1globals*NULL*211project\_titleMy New Project Title### Add a parameter to the database

[](#add-a-parameter-to-the-database)

Parameters are stored in the `container_parameter` table in the database. To add a parameter to the database, you just add its name and value to the table.

idnamevalue1custom\_parameterMy custom parameter value### Clear the cache

[](#clear-the-cache)

As database configurations and parameters are cached, you will need to do a `app/console cache:clear` every time you wish to reload the configuration coming from the database.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~0 days

Total

3

Last Release

3487d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4044434?v=4)[Carlos Campo Liébana](/maintainers/carlinhus)[@carlinhus](https://github.com/carlinhus)

---

Top Contributors

[![hubertperron](https://avatars.githubusercontent.com/u/874403?v=4)](https://github.com/hubertperron "hubertperron (26 commits)")[![vbeauvivre](https://avatars.githubusercontent.com/u/5468590?v=4)](https://github.com/vbeauvivre "vbeauvivre (12 commits)")[![guillaume-petit](https://avatars.githubusercontent.com/u/6987204?v=4)](https://github.com/guillaume-petit "guillaume-petit (11 commits)")[![carlinhus](https://avatars.githubusercontent.com/u/4044434?v=4)](https://github.com/carlinhus "carlinhus (8 commits)")[![fhamelin](https://avatars.githubusercontent.com/u/4550389?v=4)](https://github.com/fhamelin "fhamelin (2 commits)")[![tiois](https://avatars.githubusercontent.com/u/878737?v=4)](https://github.com/tiois "tiois (1 commits)")

---

Tags

symfonycontainerconfigdatabaseCarlinhus

### Embed Badge

![Health badge](/badges/carlinhus-database-config-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/carlinhus-database-config-bundle/health.svg)](https://phpackages.com/packages/carlinhus-database-config-bundle)
```

###  Alternatives

[doesntmattr/mongodb-migrations-bundle

Symfony MongoDBMigrationsBundle

23487.9k1](/packages/doesntmattr-mongodb-migrations-bundle)[goodwix/doctrine-json-odm

JSON Object-Document Mapping bundle for Symfony and Doctrine

2226.9k](/packages/goodwix-doctrine-json-odm)

PHPackages © 2026

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