PHPackages                             fbeen/settingsbundle - 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. fbeen/settingsbundle

ActiveSymfony-bundle

fbeen/settingsbundle
====================

This Bundle adds settings out of the database integration on top of the Symfony framework. It lets you design application-settings which can be maintained by the owner or administrator from the website.

012PHP

Since Jan 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Fbeen/SettingsBundle)[ Packagist](https://packagist.org/packages/fbeen/settingsbundle)[ RSS](/packages/fbeen-settingsbundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

FbeenSettingsBundle
===================

[](#fbeensettingsbundle)

This Bundle adds global settings out of the database integration on top of the Symfony framework. It lets you design application-settings which can be maintained by the owner or administrator from the website.

### Features include:

[](#features-include)

- Unlimmited setting fields
- Bootstrap ready pages and forms
- Settings can be made and deleted by you developer when you add yourself the ROLE\_SUPER\_ADMIN in a form
- The value of the setting fields can be changed by the users that have ROLE\_ADMINISTRATOR in a form
- The value of the setting fields can be changed by the application
- Five formtypes: text, email, boolean, integer and decimal.
- Form validation dependend on the formtype.

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

[](#installation)

Using composer:

1. Add `"fbeen/settingsbundle": "dev-master"` to the require section of your composer.json project file.

```
    "require": {
        ...
        "fbeen/settingsbundle": "dev-master"
    },

```

2. run composer update:

    $ composer update
3. Add the bundle to the app/AppKernel.php:

```
        $bundles = array(
            ...
            new Fbeen\SettingsBundle\FbeenSettingsBundle(),
        );

```

4. add routes to app/config/routing.yml

```
fbeen_settings:
    resource: "@FbeenSettingsBundle/Resources/config/routing.yml"
    prefix:   /admin

```

5. add routes to app/config/routing\_dev.yml

```
_fbeen_settings:
    resource: "@FbeenSettingsBundle/Resources/config/routing_dev.yml"
    prefix:   /admin

```

6. Enable Translation in `app/config/config.yml`

```
parameters:
    locale: en

framework:
    translator:      { fallbacks: ["%locale%"] }

```

7. Configure `app/config/security.yml` so that ROLE\_ADMIN and ROLE\_SUPER\_ADMIN do exist:

```
security:

    # ...

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: ROLE_ADMIN

```

8. Update your database schema

```
$ bin/console doctrine:schema:update --force

```

9. Login with an account that has ROLE\_SUPER\_ADMIN.
10. Go to the route .../app\_dev.php/admin/settings/developer and start to add settings. The form is very easy to use and does not require further explanations
11. Go to the route .../app\_dev.php/admin/settings/edit and see how administrators can change values

Usage
-----

[](#usage)

Imagine that you made a setting with the identifier shipping\_price and that you want to use the setting in your controller:

```
$value = $this->get('fbeen_settings.settings_helper')->getSetting('shipping_price');

```

Or that you want to render the setting in Twig:

```
{{ setting('shipping_price') }}

```

Update a setting:

```
$this->get('fbeen_settings.settings_helper')->updateSetting('shipping_price', $price);

```

Or maybe you want to use a setting as a page-view counter:

```
$helper = $this->get('fbeen_settings.settings_helper');
$counter = $helper->getSetting('page_views');
$helper->updateSetting('page_views', ++$counter);

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1cc8c2d6ff35eeecef4931e636ffd89fc2e84dd772a0168f506ae23d4e5720e7?d=identicon)[fbeen](/maintainers/fbeen)

---

Top Contributors

[![Fbeen](https://avatars.githubusercontent.com/u/2814747?v=4)](https://github.com/Fbeen "Fbeen (5 commits)")

### Embed Badge

![Health badge](/badges/fbeen-settingsbundle/health.svg)

```
[![Health](https://phpackages.com/badges/fbeen-settingsbundle/health.svg)](https://phpackages.com/packages/fbeen-settingsbundle)
```

PHPackages © 2026

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