PHPackages                             creavo/option-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. creavo/option-bundle

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

creavo/option-bundle
====================

A bundle to manage options

0.4.11(2y ago)01.9kMITPHPPHP &gt;5.5.9

Since Sep 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/creavo/option-bundle)[ Packagist](https://packagist.org/packages/creavo/option-bundle)[ RSS](/packages/creavo-option-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (22)Used By (0)

CREAVO Option-Bundle
====================

[](#creavo-option-bundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/cda712455b2a9aa76e5b2d713912093bc6a834641b61acab04efcbbb9f915912/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65396539623261312d623061642d343931392d396139382d3438366631643166343731652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/e9e9b2a1-b0ad-4919-9a98-486f1d1f471e)[![Packagist](https://camo.githubusercontent.com/4e65c3d9fe5b6b317fc319ca6faa3aa0662847389891b8acb45b4125d39c7da1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63726561766f2f6f7074696f6e2d62756e646c652e737667)](https://packagist.org/packages/creavo/option-bundle)

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

[](#installation)

please use composer with

```
composer require creavo/option-bundle

```

Add the bundle to your `app/AppKernel.php` with

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            [...],
            new Creavo\OptionBundle\CreavoOptionBundle(),
        ];

        return $bundles;
    }

    [...]
}

```

Update the doctrine-schema - use

```
php bin/console doctrine:schema:update

```

or do a migration:

```
php bin/console doctrine:migration:diff
php bin/console doctrine:migration:migrate

```

Configuration
-------------

[](#configuration)

add the following lines to your `app/config/config.yml`:

```
creavo_option:
    fetch_all: false
    simple_cache_service: null

```

- fetch\_all: true/false - when true, all settings are fetched from the database on initializing the bundle - depending on your use-case it might be more efficient to fetch all settings in a single query instead of fetching them later, when used (which leads to more queries)
- simple\_cache\_service: inject a simple-cache here (something that implements `Psr\SimpleCache\CacheInterface`) - when null an ArrayCache for the request is used

Usage
-----

[](#usage)

### as service

[](#as-service)

set a setting

```
$container->get('crv.option')->set('option-name', $optionValue, $optionType, $section);

```

get a setting (cached):

```
$optionValue=$container->get('crv.option')->get('option-name');

```

get a setting (uncached - will fetch value freshly from database without the cache)

```
$optionValue=$container->get('crv.option')->getUnCached('option-name');

```

### in twig

[](#in-twig)

to get a value in twig use

```
{{ crv_ob_setting('option-name') }}

```

### use console-commands

[](#use-console-commands)

set a setting with `php bin/console crv:ob:set name value [type] [section]` type and section are optional - if you omit them, the type will be a string and section `null`.

```
$ php bin/console crv:ob:set test1 "2017-09-16 12:00:00" dateTime parameters

```

setting the hash of the last-commit

```
php bin/console crv:ob:set app_version `git rev-parse --short HEAD`

```

to get a setting use get:

```
$ php bin/console crv:ob:get test1
+-----------+---------------------+
| Element   | Value               |
+-----------+---------------------+
| name      | test1               |
| type      | dateTime            |
| section   | parameters          |
| updatedAt | 2017-09-16 12:30:17 |
| value     | 2017-09-16 12:00:00 |
+-----------+---------------------+

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~115 days

Recently: every ~0 days

Total

21

Last Release

903d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a1a956eadfa9ada708a28391a0a4fb58b360aa4e10723d4c7c65e2c734e80fd?d=identicon)[cklm](/maintainers/cklm)

---

Top Contributors

[![cklm](https://avatars.githubusercontent.com/u/466021?v=4)](https://github.com/cklm "cklm (38 commits)")

---

Tags

optionsphpsymfony-bundlesymfony3tasks notify symfony bundle

### Embed Badge

![Health badge](/badges/creavo-option-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

939.0k](/packages/ahmed-bhs-doctrine-doctor)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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