Download the PHP package survos/settings-bundle without Composer
On this page you can find all versions of the php package survos/settings-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package settings-bundle
survos/settings-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
The bundle uses survos/kit-bundle, so its Doctrine entity mapping is prepended automatically.
Configuration
Usage
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.
In Twig:
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
Provide an app service that implements ScopeResolverInterface when settings should follow the current request tenant automatically:
Then alias it in the app:
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.
All versions of settings-bundle with dependencies
doctrine/dbal Version ^4.2
doctrine/doctrine-bundle Version ^3.2
doctrine/orm Version ^3.6
survos/kit-bundle Version ^2.5
symfony/dependency-injection Version ^8.1
symfony/form Version ^8.1
symfony/http-kernel Version ^8.1
symfony/security-bundle Version ^8.1
symfony/security-csrf Version ^8.1
symfony/twig-bundle Version ^8.1
symfony/uid Version ^8.1
symfony/ux-live-component Version ^3.0
symfony/validator Version ^8.1
twig/twig Version ^3.0|^4.0