PHPackages                             marcin\_jozwikowski/settings\_in\_db\_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. marcin\_jozwikowski/settings\_in\_db\_bundle

ActiveSymfony-bundle

marcin\_jozwikowski/settings\_in\_db\_bundle
============================================

A Symfony2 bundle that allows an easy key-value storage in DB

0.1.4(9y ago)0281MITPHP

Since Nov 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/marcin-jozwikowski/SettingsInDB)[ Packagist](https://packagist.org/packages/marcin_jozwikowski/settings_in_db_bundle)[ RSS](/packages/marcin-jozwikowski-settings-in-db-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (5)Used By (0)

SettingsInDB
============

[](#settingsindb)

A Symfony2 bundle that allows an easy key-value storage in DB

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

[](#installation)

1. Add as composer dependency:

```
composer require marcin_jozwikowski/settings_in_db_bundle
```

2. Add in application kernel:

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
    //...
    $bundles[] = new \MarcinJozwikowski\SettingsInDBBundle\SettingsInDBBundle();
    return $bundles;
    }
}
```

3. Update database schema:

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

\##Usage

1. Access DB stored values through service:

```
  //in controller
  $val = $this->get('settings_in_db_service')->read('key', 'defaultValue');
```

\##Configuration

Default configuration:

```
   settings_in_db:
      allow_inserts: true
      return_null_on_not_found: false
      read_all_entries_at_first_use: true
```

- **allow\_inserts** - if set to true, persists a new key-value pair if none is found
- **return\_null\_on\_not\_found** - if nothing found and allow\_inserts = false, returns null instead of throwing an exception
- **read\_all\_entries\_at\_first\_use** - if set to true loads all records at first use and searches in internal array insted of querying

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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.

###  Release Activity

Cadence

Every ~104 days

Total

4

Last Release

3532d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5331237?v=4)[Marcin Jóźwikowski](/maintainers/marcin-jozwikowski)[@marcin-jozwikowski](https://github.com/marcin-jozwikowski)

---

Top Contributors

[![marcin-jozwikowski](https://avatars.githubusercontent.com/u/5331237?v=4)](https://github.com/marcin-jozwikowski "marcin-jozwikowski (12 commits)")

---

Tags

settings symfony2

### Embed Badge

![Health badge](/badges/marcin-jozwikowski-settings-in-db-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/marcin-jozwikowski-settings-in-db-bundle/health.svg)](https://phpackages.com/packages/marcin-jozwikowski-settings-in-db-bundle)
```

PHPackages © 2026

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