PHPackages                             dhorchler/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. [Admin Panels](/categories/admin)
4. /
5. dhorchler/config-bundle

AbandonedSymfony-bundle[Admin Panels](/categories/admin)

dhorchler/config-bundle
=======================

Database-stored settings that are administrable in Sonata Admin Bundle.

2.1.x-dev(11y ago)1772[1 PRs](https://github.com/DHorchler/ConfigBundle/pulls)MITPHPPHP &gt;=5.3.3

Since Nov 21Pushed 10y ago2 watchersCompare

[ Source](https://github.com/DHorchler/ConfigBundle)[ Packagist](https://packagist.org/packages/dhorchler/config-bundle)[ Docs](https://github.com/Dhorchler/DhorchlerConfigBundle)[ RSS](/packages/dhorchler-config-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

\#Information

Compatible with Symfony 2.5 (under construction)

DHorchlerConfigBundle stores configuration settings in an ORM database and makes them administrable in Sonata Admin Bundle. These settings can be used anywhere in your project and can be modified at runtime by a Sonata admin user.

\#Features:

- individual validations for different data types
- individual constrains with easily customizable error texts
- jQuery supported form field default values

\###Currently supported data types: string, integer, float, date, datetime, choice, multiplechoice.

\#Installation

\##Get the bundle

Let Composer download and install the bundle by first adding it to your composer.json

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

and then running

```
php composer.phar update dhorchler/config-bundle
```

\##Enable the bundle in app/AppKernel.php

```
public function registerBundles() {
    $bundles = array(
        // ...
        new DHorchler\ConfigBundle\DHorchlerConfigBundle(),
    );
    // ...
}
```

\##Create the settings table

You can do this by calling

```
php app/console doctrine:migrations:diff
php app/console doctrine:migrations:migrate
```

or

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

or how ever you like.

\#Configuration

In your app/config/config.yml add

```
sonata_block:
    default_contexts: [cms]
    blocks:
        sonata.admin.block.admin_list:
            contexts:   [admin]
        sonata.block.service.text:
        sonata.block.service.rss:

sonata_admin:
    title:      Sonata Project
    title_logo: /bundles/sonataadmin/logo_title.png
    templates:
        layout:  SonataAdminBundle::standard_layout.html.twig
        ajax:    SonataAdminBundle::ajax_layout.html.twig
        list:    SonataAdminBundle:CRUD:list.html.twig
        show:    SonataAdminBundle:CRUD:show.html.twig
        edit:    DHorchlerConfigBundle::edit.html.twig
    dashboard:
        blocks:
            - { position: left, type: sonata.admin.block.admin_list }

services:
      sonata.dh.admin.settings:
        class: DHorchler\ConfigBundle\Admin\ConfigAdmin
        tags:
            - { name: sonata.admin, manager_type: orm, group: 'settings', label: Settings }
        arguments:
            - null
            - DHorchler\ConfigBundle\Entity\Settings
            - DHorchlerConfigBundle:Admin
```

After all this start managing your settings from the Sonata Admin backend.

\#Usage example:

```
$this->em = $this->getDoctrine()->getEntityManager();
$settingsRaw = $this->em->createQueryBuilder()
    ->select('s.name, s.currentValue')
    ->from('DHorchlerConfigBundle:Settings', 's')
    ->getQuery()
    ->getResult();
foreach ($settingsRaw AS $setting) $settings[$setting['name']] = $setting['currentValue']
```

\#Preview:

[![Screen shot list settings](https://camo.githubusercontent.com/6a7cd8387d0fd2bb05f0a0e41a4f77edaffc4eacde06ae2769c0d52edda1de64/68747470733a2f2f7261772e6769746875622e636f6d2f44486f7263686c65722f436f6e66696742756e646c652f6d61737465722f73726365656e5f73686f745f6c6973745f73657474696e67732e706e67)](https://camo.githubusercontent.com/6a7cd8387d0fd2bb05f0a0e41a4f77edaffc4eacde06ae2769c0d52edda1de64/68747470733a2f2f7261772e6769746875622e636f6d2f44486f7263686c65722f436f6e66696742756e646c652f6d61737465722f73726365656e5f73686f745f6c6973745f73657474696e67732e706e67)

[![Screen shot edit integer settings](https://github.com/DHorchler/ConfigBundle/raw/master/srceen_shot_edit_integer_setting.png)](https://github.com/DHorchler/ConfigBundle/blob/master/srceen_shot_edit_integer_setting.png)

[![Screen shot edit date settings](https://github.com/DHorchler/ConfigBundle/raw/master/srceen_shot_edit_date_setting.png)](https://github.com/DHorchler/ConfigBundle/blob/master/srceen_shot_edit_date_setting.png)

\#Todo:

- add more tests
- client side validation

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4193d ago

### Community

Maintainers

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

---

Tags

SettingsconfigSymfony2sonata-admin

### Embed Badge

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

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

###  Alternatives

[redchamps/module-clean-admin-menu

It will merge all third party extensions menu items to single menu item named 'Extensions'.

164416.3k](/packages/redchamps-module-clean-admin-menu)[dmishh/settings-bundle

Database centric Symfony configuration management. Global and per-user settings supported.

115254.9k1](/packages/dmishh-settings-bundle)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9546.7k2](/packages/jbtronics-settings-bundle)[fsi/admin-bundle

FSi Admin Bundle. Admin generator for Symfony.

5849.2k7](/packages/fsi-admin-bundle)[pirasterize/sonata-form-builder

A drag&amp;drop form builder for sonata admin

192.9k](/packages/pirasterize-sonata-form-builder)[lag/adminbundle

Generic admin bundle for Symfony2 from L'arrière-guichet

105.9k1](/packages/lag-adminbundle)

PHPackages © 2026

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