Get support for rvanlaak/SettingsBundle
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
rvanlaak/SettingsBundle
SettingsBundle
Bundle for storing configuration with Symfony in database using Doctrine ORM.
👀 This bundle was previously known as dmissh/settings-bundle
, and the Packagist installation instruction will stay as is.
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
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 documentation for more examples.
Documentation
Changelog, Roadmap and contribution
Please, do not hesitate to report bugs or send pull requests. It will help to motivate me to support library better than anything else :)
See CHANGELOG.md for all major changes.
Upgrade from 1.0.*
Make sure to read the UPGRADE.md to successfully migrate your application.
License
The MIT License. For the full text of license, please, see LICENSE
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2