PHPackages                             makinacorpus/preferences-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. makinacorpus/preferences-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

makinacorpus/preferences-bundle
===============================

Preferences are configuration variables that are user-managed for which we cannot rely upon container parameters or environment variables.

1.1.1(2y ago)14.5k↓50%GPL-2.0-or-laterPHPPHP &gt;=8.0

Since Feb 7Pushed 2y ago2 watchersCompare

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

READMEChangelogDependencies (10)Versions (5)Used By (0)

Preferences
===========

[](#preferences)

Preferences are configuration variables that are meant to be user managed for which we cannot rely upon container parameters or environment variables.

This bundle provides a simple API for:

- Defining a preferences variable schema, with variable name, type, and description.
- Reading them as environment variables by the container, in order to allow using those variables as services parameters.
- A form type which handles all basic types (int, type, string) as collections or single-values variables, which you can use in any form.
- An implementation for storing user values in database using `makinacorpus/goat-query`.
- Bus handlers and messages for `symfony/messenger`, `makinacorpus/goat` and `makinacorpus/corebus`.
- An interface for reading the schema defined in project configuration.
- An interface for reading values.

Setup
=====

[](#setup)

This package is depends on `makinacorpus/goat-query`.

Simply install this package:

```
composer require makinacorpus/preferences-bundle
```

Then add the bundle into your `config/bundles.php` file:

```
