PHPackages                             certunlp/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. [Framework](/categories/framework)
4. /
5. certunlp/database-config-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

certunlp/database-config-bundle
===============================

Allows management of Symfony's container configuration from the database

0491PHP

Since Sep 17Pushed 5y agoCompare

[ Source](https://github.com/CERTUNLP/DatabaseConfigBundle)[ Packagist](https://packagist.org/packages/certunlp/database-config-bundle)[ RSS](/packages/certunlp-database-config-bundle/feed)WikiDiscussions master Synced today

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

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 74.3% 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/848569a85f571c01ce74b0039ae18b3bb1dd2d77b4f3f646e7c432eda8c0532e?d=identicon)[dám](/maintainers/d%C3%A1m)

---

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)")[![rubiodamian](https://avatars.githubusercontent.com/u/1789406?v=4)](https://github.com/rubiodamian "rubiodamian (2 commits)")[![tiois](https://avatars.githubusercontent.com/u/878737?v=4)](https://github.com/tiois "tiois (1 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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