PHPackages                             qbbr/locale-configurator-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. [Localization &amp; i18n](/categories/localization)
4. /
5. qbbr/locale-configurator-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

qbbr/locale-configurator-bundle
===============================

Simple configuration on locale

1.0.6(3y ago)011MITPHPPHP ^7.4|^8.0

Since Dec 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/qbbr/LocaleConfiguratorBundle)[ Packagist](https://packagist.org/packages/qbbr/locale-configurator-bundle)[ Docs](https://github.com/qbbr/LocaleConfiguratorBundle)[ RSS](/packages/qbbr-locale-configurator-bundle/feed)WikiDiscussions master Synced 1mo ago

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

LocaleConfiguratorBundle
========================

[](#localeconfiguratorbundle)

Simple configuration on locale.

[![Tests](https://github.com/qbbr/LocaleConfiguratorBundle/workflows/Tests/badge.svg)](https://github.com/qbbr/LocaleConfiguratorBundle/actions)[![Latest Stable Version](https://camo.githubusercontent.com/98618adb4c314f94366de309e055adbe908cf53fa88ddbda6b908d8c3a5154f4/68747470733a2f2f706f7365722e707567782e6f72672f716262722f6c6f63616c652d636f6e666967757261746f722d62756e646c652f762f737461626c65)](https://packagist.org/packages/qbbr/locale-configurator-bundle)[![Total Downloads](https://camo.githubusercontent.com/4d8a0a749d058839228925e70cd1d9d674903f87a0e77d9d2d756a1d447d8ead/68747470733a2f2f706f7365722e707567782e6f72672f716262722f6c6f63616c652d636f6e666967757261746f722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/qbbr/locale-configurator-bundle)[![License](https://camo.githubusercontent.com/4360f5cb4e14bc3525302d29b1719a5edf3da1465397d843f1cffdd55add63e5/68747470733a2f2f706f7365722e707567782e6f72672f716262722f6c6f63616c652d636f6e666967757261746f722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/qbbr/locale-configurator-bundle)[![PHP Version Require](https://camo.githubusercontent.com/1d14d6308484153478b93fab82b68ecfeb129fa8e9236afa1e7ddba70bee8d98/687474703a2f2f706f7365722e707567782e6f72672f716262722f6c6f63616c652d636f6e666967757261746f722d62756e646c652f726571756972652f706870)](https://packagist.org/packages/qbbr/locale-configurator-bundle)

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

[](#installation)

### Step 1: Download the Bundle

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

```
composer require qbbr/locale-configurator-bundle
```

### Step 2: Enable the Bundle

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

```
// config/bundles.php

return [
    // ...
    Qbbr\LocaleConfiguratorBundle\LocaleConfiguratorBundle::class => ['all' => true],
];
```

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

[](#configuration)

#### Config structure

[](#config-structure)

```
config/locale_configurator/
├── _default.yaml
├── en.yaml
├── ru.yaml
└── ...

```

logic: `config = merge(_default.yaml, locale.yaml)`

#### Parameters by default

[](#parameters-by-default)

u can override it.

```
parameters:
    qbbr.locale_configurator.config_dir: '%kernel.project_dir%/config/locale_configurator'
    qbbr.locale_configurator.raise_not_found_param_exception: false
```

Usage
-----

[](#usage)

### PHP

[](#php)

```
use Qbbr\LocaleConfiguratorBundle\Configurator\LocaleConfigurator;

class SomeService
{
    private LocaleConfigurator $lc;

    public function __construct(
        LocaleConfigurator $lc
    ) {
        $this->lc = $lc;
    }

    public function something()
    {
        // $this->lc->setLocale('ru');
        $param1 = $this->lc->get('param1');
    }
}
```

### Twig

[](#twig)

has `lc_has`/`lc_get` fn.

```
{% if lc_has('param1') %}
    ...
{% endif %}

{% set param1 = lc_get('param1') %}
```

Tests
-----

[](#tests)

```
./vendor/bin/phpunit Tests/ -v --testdox
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~0 days

Total

7

Last Release

1232d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a723620ded3e1eacda793c4f652fd43981ac0689fce8a8267ef481d44fdd7c7?d=identicon)[qbbr](/maintainers/qbbr)

---

Top Contributors

[![qbbr](https://avatars.githubusercontent.com/u/131593?v=4)](https://github.com/qbbr "qbbr (2 commits)")

---

Tags

configurationlocalephpsymfonysymony-bundlesymfonyconfiglocaleqbbr

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/qbbr-locale-configurator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/qbbr-locale-configurator-bundle/health.svg)](https://phpackages.com/packages/qbbr-locale-configurator-bundle)
```

###  Alternatives

[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

6914.0M62](/packages/scheb-2fa-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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