PHPackages                             smart-core/settings-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. smart-core/settings-bundle

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

smart-core/settings-bundle
==========================

SmartCore Settings Bundle.

05371PHP

Since Jun 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Smart-Core/SettingsBundle)[ Packagist](https://packagist.org/packages/smart-core/settings-bundle)[ RSS](/packages/smart-core-settings-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Settings Bundle
===============

[](#settings-bundle)

Installation
------------

[](#installation)

1. Необходимо прописать в Kernel.php следующий код:

    ```
    protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container, $class, $baseClass)
    {
        parent::dumpContainer($cache, $container, $class, $baseClass);

        /** @var ContainerInterface $container2 */
        $container = require $cache->getPath();
        $container->set('kernel', $this);
        $container->get('settings')->warmupDatabase();
    }
    ```
2. Затем в бандле по марштруту /Resources/config/settings.yml описать конфиг настроек в следующем формате:

    ```
    # Short format
    option1: value 1

    # Full specs
    option2:
        type: TextType # CheckboxType, ChoiceType, CheckboxType etc...
        hidden: true # Скрывать в админке
        value: |
            Многострочный
            Текст.
        title: Если указан заголовок, то будет отображаться вместо имени.
        description: Подробное описание настройки
        validation:
            - NotBlank: ~
            - Range:
                min: 120
                max: 180
        choices:
            ru: Россия
            de: Германия

        # @todo
        group: main
        update_callback: \My\Setting\Callback::option2 # Вызов стататического метода либо сервиса при обновлении параметра.
    ```
3. Чтобы файл settings.yml прочитался, необходимо создать DependencyInjection\*Extension для того, чтобы бандл получил в системе Extension alias.

TODO
----

[](#todo)

- Конфигурирование приложения Symfony 4, например через /config/packages/smart\_settings.yaml
- Решить как поступать в случае если настройка была сохранена в БД, но потом удалена из конфига. Здесь можно либо удалять настройку из бд, либо помечать is\_active = false.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/35e4e44d75c04a317fb981738075cd861c584e267a65a296568813c78dfef899?d=identicon)[artemdigi](/maintainers/artemdigi)

---

Top Contributors

[![artemdigi](https://avatars.githubusercontent.com/u/34234796?v=4)](https://github.com/artemdigi "artemdigi (55 commits)")

---

Tags

phpsettingssettings-storagesymfonysymfony-bundle

### Embed Badge

![Health badge](/badges/smart-core-settings-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/smart-core-settings-bundle/health.svg)](https://phpackages.com/packages/smart-core-settings-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
