PHPackages                             oallain/settings-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. oallain/settings-bundle

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

oallain/settings-bundle
=======================

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

2.0.1(7y ago)08MITPHPPHP ^5.5.9|^7.0

Since Mar 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/oallain/SettingsBundle)[ Packagist](https://packagist.org/packages/oallain/settings-bundle)[ Docs](https://github.com/oallain/SettingsBundle)[ RSS](/packages/oallain-settings-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (9)Versions (23)Used By (0)

SettingsBundle
==============

[](#settingsbundle)

Bundle for storing configuration with Symfony in database using Doctrine2 ORM.

[![Build Status](https://camo.githubusercontent.com/fea0e8191dc53fd065415ef9f3f280fcb4efbe2987db87102a7199ee0e6158ac/68747470733a2f2f7472617669732d63692e6f72672f646d697368682f53657474696e677342756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/dmishh/SettingsBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/b5714c636201fd036324f07d34e423227edfd639d724146e89f851c433d16dff/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35333735363834662d356234302d343839612d616361352d6562303163336361356163322f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/5375684f-5b40-489a-aca5-eb01c3ca5ac2)

Features
--------

[](#features)

- Easy-to-use (Twig extension, container service)
- Settings scopes per user, global or all
- Settings validation by using the Symfony Form Component
- 2 serialization mechanisms: PHP `serialize()` and JSON (+ you can write your own)
- Settings caching (PSR-6)
- Fast and extensible

Quick usage examples
--------------------

[](#quick-usage-examples)

Symfony controller:

```
// Global settings
$this->get('settings_manager')->set('name', 'foo');
$this->get('settings_manager')->get('name'); // returns 'foo'

// User settings
$this->get('settings_manager')->get('name', $user); // returns global 'foo'
$this->get('settings_manager')->set('name', 'bar', $user);
$this->get('settings_manager')->get('name', $user); // returns 'bar'
```

Twig template:

```
{# Global setting #}
{{ get_setting('some_setting') }} {# => 'value' #}

{# User setting #}
{{ get_setting('some_user_setting', app.user) }} {# => 'value' #}
```

See the [general usage](/Resources/doc/general-usage.md) documentation for more examples.

Documentation
-------------

[](#documentation)

- [Installation](/Resources/doc/installation.md)
- [General usage](/Resources/doc/general-usage.md)
- [Scopes](/Resources/doc/scopes.md)
- [Advanced configuration](/Resources/doc/advanced-configuration.md)
- [I18n](/Resources/doc/i18n.md)
- [Customization](/Resources/doc/customization.md)
- [FAQ](/Resources/doc/faq.md)

Changelog, Roadmap and contribution
-----------------------------------

[](#changelog-roadmap-and-contribution)

Please, do not hesitate to [report bugs](https://github.com/dmishh/SettingsBundle/issues) or send [pull requests](https://github.com/dmishh/SettingsBundle/pulls). It will help to motivate me to support library better than anything else :)

See [CHANGELOG.md](CHANGELOG.md) for all major changes.

### Upgrade from 1.0.\*

[](#upgrade-from-10)

Make sure to read the [UPGRADE.md](UPGRADE.md) to successfully migrate your application.

License
-------

[](#license)

The MIT License. For the full text of license, please, see [LICENSE](/LICENSE)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 50.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.

###  Release Activity

Cadence

Every ~84 days

Recently: every ~290 days

Total

21

Last Release

2803d ago

Major Versions

1.x-dev → 2.0.0-alpha12015-03-16

PHP version history (2 changes)1.0.0-alpha1PHP &gt;=5.3.3

2.0.0-beta2PHP ^5.5.9|^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b6ecf9b989a0555111e3679341fe874766bd3be97e97e0a8522f52c6dccdb65?d=identicon)[oallain](/maintainers/oallain)

---

Top Contributors

[![dmishh](https://avatars.githubusercontent.com/u/822562?v=4)](https://github.com/dmishh "dmishh (88 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (60 commits)")[![rvanlaak](https://avatars.githubusercontent.com/u/2707563?v=4)](https://github.com/rvanlaak "rvanlaak (18 commits)")[![jonny-no1](https://avatars.githubusercontent.com/u/282458?v=4)](https://github.com/jonny-no1 "jonny-no1 (3 commits)")[![oallain](https://avatars.githubusercontent.com/u/6593252?v=4)](https://github.com/oallain "oallain (2 commits)")[![aminin](https://avatars.githubusercontent.com/u/329494?v=4)](https://github.com/aminin "aminin (1 commits)")[![Koc](https://avatars.githubusercontent.com/u/191082?v=4)](https://github.com/Koc "Koc (1 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (1 commits)")[![Atyz](https://avatars.githubusercontent.com/u/1155066?v=4)](https://github.com/Atyz "Atyz (1 commits)")

---

Tags

symfonybundleconfigurationSettingsconfig

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oallain-settings-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M380](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M724](/packages/sylius-sylius)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M198](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.7k](/packages/contao-core-bundle)

PHPackages © 2026

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