PHPackages                             hengebytes/setting-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. hengebytes/setting-bundle

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

hengebytes/setting-bundle
=========================

Key-value storage for Symfony with encryption

v1.0.5(4mo ago)1125MITPHPPHP &gt;=8.3

Since Mar 31Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/hengebytes/setting-bundle)[ Packagist](https://packagist.org/packages/hengebytes/setting-bundle)[ RSS](/packages/hengebytes-setting-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Setting Bundle
==============

[](#setting-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/3d136a3f6a1f975059be2f41de6ae9abc37a5e3b360907e317adb967918e4ed8/68747470733a2f2f706f7365722e707567782e6f72672f68656e676562797465732f73657474696e672d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/hengebytes/setting-bundle)[![Total Downloads](https://camo.githubusercontent.com/70e3dfe43bb48dc6aadfcd0062f6cb81db14e2c4d364aa876dd962a1f861859b/68747470733a2f2f706f7365722e707567782e6f72672f68656e676562797465732f73657474696e672d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/hengebytes/setting-bundle)[![License](https://camo.githubusercontent.com/6cf89e01ccb82e5cb981c24eff8dbf292fdccb91d13f62cf71b6e0b44950a469/68747470733a2f2f706f7365722e707567782e6f72672f68656e676562797465732f73657474696e672d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/hengebytes/setting-bundle)

About bundle
------------

[](#about-bundle)

This bundle provides a simple way to manage settings in your Symfony application as a key-value. Sensitive data is encrypted. If you want to update the sensitive setting, you need to send the raw value again. The bundle provides an API to manage settings.

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

```
    composer update
```

#### Create the CRYPTO\_KEY

[](#create-the-crypto_key)

generated as follows:

```
echo sodium_bin2hex(sodium_crypto_secretbox_keygen());
```

Add the generated key to your .env file:

```
CRYPTO_KEY=your_generated_key

```

Ensure that you have the variable in docker compose file:

```
    environment:
      - CRYPTO_KEY=${CRYPTO_KEY}

```

Step 2: Enable the Bundle
-------------------------

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles:

```
// config/bundles.php
return [
    // ...
    Hengebytes\SettingBundle\HBSettingBundle::class => ['all' => true],
];
}
```

Step 3: Config the Routing
--------------------------

[](#step-3-config-the-routing)

Then, enable the routes by adding it to the route list in the `app/config/routing.yml` file of your project:

```
# app/config/routing.yml

setting_routes:
    resource: "@HBSettingBundle/Resources/config/routing.yml"
    prefix:   /  # some admin path prefix
```

Step 4: Assets (Optional)
-------------------------

[](#step-4-assets-optional)

If you want to use admin UI you need to install assets:

```
    $ php bin/console assets:install
```

Step 5: API
-----------

[](#step-5-api)

Include the following in your `config/routes.yaml` file:

```
setting_api:
    resource: "@HBSettingBundle/Resources/config/api_routing.yml"
    prefix: /api
```

The API is not secured by default. You should secure it by adding a firewall in your `config/packages/security.yaml` file:

```
security:
    firewalls:
        setting_api:
            pattern: ^/api/settings
            stateless: true
            anonymous: false
            provider: app_user_provider
            guard:
                authenticators:
                    - lexik_jwt_authentication.jwt_token_authenticator
```

### The following requests are available:

[](#the-following-requests-are-available)

List of settings can be retrieved by the following request:

`GET /api/settings/list`

`POST /api/settings`

POST requests should have the following body

```
{
    "name": "general/stuff/secret1",
    "value": "test",
    "is_sensitive": false
}
```

`DELETE /api/settings/list`

DELETE requests should have the following body:

```
{
  "settings": ["setting/line1", "setting/line2", "setting/line3"]
}
```

`POST /api/settings/list`

POST requests should have the following body:

```
{
  "settings": [
    {
      "name": "setting/line1",
      "value": "test",
      "is_sensitive": false
    },
    {
      "name": "setting/line2",
      "value": "test",
      "is_sensitive": false
    },
    {
      "name": "setting/line3",
      "value": "test",
      "is_sensitive": false
    }
  ]
}
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance76

Regular maintenance activity

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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.

###  Release Activity

Cadence

Every ~140 days

Total

3

Last Release

132d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c84bad4d54832e9205f4ca4262d95035343228b5ca650df784d80cb4d47f3456?d=identicon)[ITernovtsiy](/maintainers/ITernovtsiy)

---

Top Contributors

[![ITernovtsii](https://avatars.githubusercontent.com/u/2779573?v=4)](https://github.com/ITernovtsii "ITernovtsii (5 commits)")[![ATernovtsii](https://avatars.githubusercontent.com/u/13164912?v=4)](https://github.com/ATernovtsii "ATernovtsii (3 commits)")

---

Tags

SettingBundle

### Embed Badge

![Health badge](/badges/hengebytes-setting-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/hengebytes-setting-bundle/health.svg)](https://phpackages.com/packages/hengebytes-setting-bundle)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[anime-db/anime-db

The application for making home collection anime

252.1k2](/packages/anime-db-anime-db)

PHPackages © 2026

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