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

ActiveSymfony-bundle

survos/settings-bundle
======================

Tenant-scoped settings storage for Symfony applications.

2.18.0(today)08↑2900%MITPHPPHP ^8.4

Since Jul 17Pushed todayCompare

[ Source](https://github.com/survos/settings-bundle)[ Packagist](https://packagist.org/packages/survos/settings-bundle)[ GitHub Sponsors](https://github.com/kbond)[ RSS](/packages/survos-settings-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (15)Versions (3)Used By (0)

survos/settings-bundle
======================

[](#survossettings-bundle)

Tenant-scoped settings storage for Symfony 8.1+ applications.

This bundle is intentionally small: it stores named JSON values with an optional opaque `scope` string. Apps decide what scopes mean: tenant, site, user, locale group, or global. Typical values include a site logo, tagline, displayed locales, contact links, and feature toggles.

Install
-------

[](#install)

```
composer require survos/settings-bundle
bin/console doctrine:schema:update --dump-sql
bin/console make:migration
bin/console doctrine:migrations:migrate
```

The bundle uses `survos/kit-bundle`, so its Doctrine entity mapping is prepended automatically.

Configuration
-------------

[](#configuration)

```
# config/packages/survos_settings.yaml
survos_settings:
    # `global` stores global settings with an explicit scope. Use 'global' if your app prefers an explicit row key.
    global_scope: global
    fallback_to_global: true
    settings:
        logo:
            type: Symfony\Component\Form\Extension\Core\Type\UrlType
            options: { label: Logo URL }
            default: /default-logo.svg
        tagline:
            options: { label: Tagline }
            default: Welcome
        displayed_locales:
            type: Symfony\Component\Form\Extension\Core\Type\ChoiceType
            options:
                label: Displayed locales
                multiple: true
                choices: { English: en, Spanish: es, French: fr }
            default: [en]
```

Usage
-----

[](#usage)

```
use Survos\SettingsBundle\Service\SettingsManagerInterface;

final readonly class BrandingController
{
    public function __construct(private SettingsManagerInterface $settings) {}

    public function updateTenantBranding(): void
    {
        $this->settings->set('logo', '/uploads/tenant/acme.svg', scope: 'tenant:acme');
        $this->settings->set('tagline', 'Archives for everyone', scope: 'tenant:acme');
        $this->settings->set('displayed_locales', ['en', 'es'], scope: 'tenant:acme');
    }
}
```

Reads use the current scope from `ScopeResolverInterface` when the caller does not pass one. If the scoped row does not exist, reads fall back to the global scope when `fallback_to_global` is enabled.

```
$logo = $settings->get('logo', '/default-logo.svg', scope: 'tenant:acme');
$locales = $settings->get('displayed_locales', ['en'], scope: 'tenant:acme');
```

In Twig:

```

{{ settings_value('tagline', 'Welcome') }}
```

Render the editor as a UX LiveComponent:

```

```

When `scope` is omitted, the component uses the app's `ScopeResolverInterface` just like normal reads and writes.

Tenant scope resolver
---------------------

[](#tenant-scope-resolver)

Provide an app service that implements `ScopeResolverInterface` when settings should follow the current request tenant automatically:

```
use Survos\SettingsBundle\Service\ScopeResolverInterface;

final readonly class TenantScopeResolver implements ScopeResolverInterface
{
    public function __construct(private TenantContext $tenantContext) {}

    public function currentScope(): ?string
    {
        return $this->tenantContext->tenant()?->code
            ? 'tenant:'.$this->tenantContext->tenant()->code
            : null;
    }
}
```

Then alias it in the app:

```
services:
    Survos\SettingsBundle\Service\ScopeResolverInterface: '@App\Tenant\TenantScopeResolver'
```

Relationship to older bundles
-----------------------------

[](#relationship-to-older-bundles)

This bundle borrows the simple database-centric setting row from `dmishh/settings-bundle` and the typed, modern Symfony style from `jbtronics/settings-bundle`, but keeps scope as a first-class storage key for tenant-aware applications.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance100

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21b39551f92ed4143772c622f9e571589c5a72c96ab3c53fe67489ce0d83e806?d=identicon)[tacman1123](/maintainers/tacman1123)

---

Top Contributors

[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (3 commits)")

---

Tags

symfonyconfigurationSettingstenantscope

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M407](/packages/easycorp-easyadmin-bundle)[sylius/sylius

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

8.5k6.0M760](/packages/sylius-sylius)[contao/core-bundle

Contao Open Source CMS

1301.7M2.9k](/packages/contao-core-bundle)[sulu/sulu

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

1.3k1.4M218](/packages/sulu-sulu)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M528](/packages/pimcore-pimcore)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1717.3k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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