PHPackages                             foreverglory/setting-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. foreverglory/setting-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

foreverglory/setting-bundle
===========================

Symfony SettingBundle

v0.2.0(10y ago)038MITPHP

Since Feb 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/foreverglory/setting-bundle)[ Packagist](https://packagist.org/packages/foreverglory/setting-bundle)[ Docs](http://foreverglory.me)[ RSS](/packages/foreverglory-setting-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

SettingBundle
=============

[](#settingbundle)

Symfony SettingBundle

Introduction
------------

[](#introduction)

### Composer

[](#composer)

Add to `composer.json` in your project to `require` section:

```
{
    "foreverglory/setting-bundle": "~0.1"
}
```

### Add this bundle to your application's kernel

[](#add-this-bundle-to-your-applications-kernel)

```
//app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Glory\Bundle\SettingBundle\GlorySettingBundle(),
        // ...
    );
}
```

### Conﬁgure service in your YAML configuration

[](#conﬁgure-service-in-your-yaml-configuration)

```
#app/conﬁg/conﬁg.yml
glory_setting:
    driver:~    #default %database_driver%
    manager:~   #service id, default if driver is 'pdo_mysql', manager is @doctrine.orm.default_entity_manager
    model:~     #model class,default if driver is 'pdo_mysql', model is Glory\Bundle\SettingBundle\Entity\Setting
```

### php code

[](#php-code)

```
$settingManager = $container->get('glory_setting.manager');

$settingManager->value('name');
$settingManager->value('name','default-value');

$settingManager->value('name.key');
$settingManager->value('name.key','default-value');

$settingManager->save('name','value');
$settingManager->save('name',array('key'=>'value'));
```

### twig code

[](#twig-code)

```
{# string #}
{{setting('name')}}
{{setting('name','default-value')}}

{# array #}
{{setting('name.key')}}
{{setting('name.key','default-value')}}

{% set value=setting('name') %}
{{value.key}}

{# Warning #}
{#
    if setting('name') is array
    use {{setting('name')}}
    will throw Exception("Notice: Array to string conversion")
#}
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

3755d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f2db77628f7824d4dda8968f3dd7f314800bb3ae6663d788cd6614e92623695?d=identicon)[foreverglory](/maintainers/foreverglory)

---

Top Contributors

[![foreverglory](https://avatars.githubusercontent.com/u/1069963?v=4)](https://github.com/foreverglory "foreverglory (13 commits)")

---

Tags

symfonybundlesetting

### Embed Badge

![Health badge](/badges/foreverglory-setting-bundle/health.svg)

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

###  Alternatives

[gwk/dynamo-session-bundle

DynamoDB Session Handler Bundle for Symfony 2

13210.9k](/packages/gwk-dynamo-session-bundle)

PHPackages © 2026

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