2017 © Pedro Peláez
 

symfony-bundle settings-bundle

Database centric Symfony configuration management. Global and per-user settings supported.

image

dmishh/settings-bundle

Database centric Symfony configuration management. Global and per-user settings supported.

  • Saturday, September 16, 2017
  • by dmishh
  • Repository
  • 12 Watchers
  • 75 Stars
  • 57,073 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 35 Forks
  • 21 Open issues
  • 22 Versions
  • 12 % Grown

The README.md

SettingsBundle

Bundle for storing configuration with Symfony in database using Doctrine ORM., (*1)

👀 This bundle was previously known as dmissh/settings-bundle, and the Packagist installation instruction will stay as is., (*2)

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:, (*3)

// 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:, (*4)

{# 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., (*5)

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 :), (*6)

See CHANGELOG.md for all major changes., (*7)

Upgrade from 1.0.*

Make sure to read the UPGRADE.md to successfully migrate your application., (*8)

License

The MIT License. For the full text of license, please, see LICENSE, (*9)

The Versions

12/03 2016

dev-factory-method

dev-factory-method https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

24/08 2015
24/08 2015

2.0.0-alpha6

2.0.0.0-alpha6 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

14/06 2015

2.0.0-alpha5

2.0.0.0-alpha5 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

01/06 2015

2.0.0-alpha4

2.0.0.0-alpha4 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

17/05 2015

2.0.0-alpha3

2.0.0.0-alpha3 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

01/04 2015

2.0.0-alpha2

2.0.0.0-alpha2 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

16/03 2015

2.0.0-alpha1

2.0.0.0-alpha1 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

09/03 2015

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

09/03 2015

1.0.7

1.0.7.0 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

01/03 2015

1.0.6

1.0.6.0 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

22/02 2015

1.0.5

1.0.5.0 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

10/09 2014

1.0.4

1.0.4.0 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

15/05 2014

1.0.3

1.0.3.0 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

13/05 2014

1.0.2

1.0.2.0 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

13/05 2014

1.0.1

1.0.1.0 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

03/04 2014

1.0.0

1.0.0.0 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. It just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle

23/03 2014

1.0.0-alpha1

1.0.0.0-alpha1 https://github.com/dmishh/SettingsBundle

Database centric Symfony2 configuration management. Global and per-user settings supported. Just works.

  Sources   Download

MIT

The Requires

 

The Development Requires

settings configuration config symfony2 bundle