Download the PHP package whitedigital-eu/settings-bundle without Composer
On this page you can find all versions of the php package whitedigital-eu/settings-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download whitedigital-eu/settings-bundle
More information about whitedigital-eu/settings-bundle
Files in whitedigital-eu/settings-bundle
Informations about the package settings-bundle
Settings Bundle
What is it?
This bundle adds option to define multiple data structures to be stored as individual settings in a database, with caching support
System Requirements
PHP 8.1+ Symfony 6.2+
Installation
The recommended way to install is via Composer:
After this, you need to update your database schema to use Settings entity.
If using migrations:
If by schema update:
This is it, now you can use settings service. It is configured and autowired as SettingsService
.
To add a new setting, simply create a class that extends SettingsInterface.
Exposing settings to API endpoints via ApiPlatform
To allow changing of the settings via api platform, create a custom ApiResource class, and provider/processor. And add a custom store normalizer.
Provider:
Processor:
Normalizer:
All versions of settings-bundle with dependencies
doctrine/doctrine-bundle Version *
doctrine/orm Version *
doctrine/persistence Version *
symfony/config Version >=6.2
symfony/dependency-injection Version >=6.2
symfony/event-dispatcher Version >=6.2
symfony/http-foundation Version >=6.2
symfony/http-kernel Version >=6.2
symfony/security-bundle Version >=6.2
symfony/translation Version >=6.2
whitedigital-eu/entity-resource-mapper-bundle Version >=0.16.0