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

ActiveSymfony-bundle

unifik/database-config-bundle
=============================

Allows management of Symfony's container configuration from the database

3012.7k18[10 issues](https://github.com/egzakt/UnifikDatabaseConfigBundle/issues)[3 PRs](https://github.com/egzakt/UnifikDatabaseConfigBundle/pulls)1PHP

Since Sep 12Pushed 3y ago13 watchersCompare

[ Source](https://github.com/egzakt/UnifikDatabaseConfigBundle)[ Packagist](https://packagist.org/packages/unifik/database-config-bundle)[ RSS](/packages/unifik-database-config-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (1)

UnifikDatabaseConfigBundle
==========================

[](#unifikdatabaseconfigbundle)

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

---

UnifikDatabaseConfigBundle 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": {
        "unifik/database-config-bundle": "dev-master"
    }
```

2. Run a composer update :

```
composer update
```

3. Register the bundle in your AppKernel.php :

```
public function registerBundles()
{
        new Unifik\DatabaseConfigBundle\UnifikDatabaseConfigBundle(),
}
```

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

```
use Unifik\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)

UnifikDatabaseConfigBundle 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 59% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.8% 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://www.gravatar.com/avatar/60e70285f3672ac666f7e8e8a4115501a38c9a35c113f08edb915886f651849d?d=identicon)[hubertperron](/maintainers/hubertperron)

---

Top Contributors

[![hubertperron](https://avatars.githubusercontent.com/u/874403?v=4)](https://github.com/hubertperron "hubertperron (26 commits)")[![fhamelin](https://avatars.githubusercontent.com/u/4550389?v=4)](https://github.com/fhamelin "fhamelin (2 commits)")[![mhnrm](https://avatars.githubusercontent.com/u/4669693?v=4)](https://github.com/mhnrm "mhnrm (2 commits)")[![ndenoncourt](https://avatars.githubusercontent.com/u/8125244?v=4)](https://github.com/ndenoncourt "ndenoncourt (2 commits)")[![tiois](https://avatars.githubusercontent.com/u/878737?v=4)](https://github.com/tiois "tiois (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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