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

ActiveSymfony-bundle

pastila/settings-bundle
=======================

Database centric Symfony configuration management. Global and per-user settings supported. Fork dmishh/SettingsBundle

014PHP

Since Nov 15Pushed 1y agoCompare

[ Source](https://github.com/pastila/settings-bundle)[ Packagist](https://packagist.org/packages/pastila/settings-bundle)[ RSS](/packages/pastila-settings-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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)

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
$settingsManager->set('name', 'foo');
$settingsManager->get('name'); // returns 'foo'

// User settings
$settingsManager->get('name', $user); // returns global 'foo'
$settingsManager->set('name', 'bar', $user);
$settingsManager->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

17

—

LowBetter than 6% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/495eabb8ed48e29e037cd0564b9f8f0a42fb177b714510d05843c23672b4f82c?d=identicon)[pastila](/maintainers/pastila)

---

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 (64 commits)")[![rvanlaak](https://avatars.githubusercontent.com/u/2707563?v=4)](https://github.com/rvanlaak "rvanlaak (38 commits)")[![nikophil](https://avatars.githubusercontent.com/u/10139766?v=4)](https://github.com/nikophil "nikophil (4 commits)")[![jonny-no1](https://avatars.githubusercontent.com/u/282458?v=4)](https://github.com/jonny-no1 "jonny-no1 (3 commits)")[![pastila](https://avatars.githubusercontent.com/u/3678924?v=4)](https://github.com/pastila "pastila (2 commits)")[![jongotlin](https://avatars.githubusercontent.com/u/165154?v=4)](https://github.com/jongotlin "jongotlin (1 commits)")[![Alexandre-T](https://avatars.githubusercontent.com/u/5101481?v=4)](https://github.com/Alexandre-T "Alexandre-T (1 commits)")[![jphilaine](https://avatars.githubusercontent.com/u/707933?v=4)](https://github.com/jphilaine "jphilaine (1 commits)")[![Koc](https://avatars.githubusercontent.com/u/191082?v=4)](https://github.com/Koc "Koc (1 commits)")[![fautor](https://avatars.githubusercontent.com/u/21367624?v=4)](https://github.com/fautor "fautor (1 commits)")[![Atyz](https://avatars.githubusercontent.com/u/1155066?v=4)](https://github.com/Atyz "Atyz (1 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (1 commits)")[![aminin](https://avatars.githubusercontent.com/u/329494?v=4)](https://github.com/aminin "aminin (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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