PHPackages                             connectsb/localebundle - 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. connectsb/localebundle

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

connectsb/localebundle
======================

Bundle for managing locales

013PHP

Since Dec 17Pushed 11y ago2 watchersCompare

[ Source](https://github.com/ConnectSB/symfony2-locale-bundle)[ Packagist](https://packagist.org/packages/connectsb/localebundle)[ RSS](/packages/connectsb-localebundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Symfony Locale Bundle
=====================

[](#symfony-locale-bundle)

With this bundle you can get the country names of locales.

1) Installation
---------------

[](#1-installation)

First you have to add the folowing lines to your `composer.json` file:

```
{
    "require": {
        "connectsb/localebundle": "dev-master"
    }
}
```

You also have to add the LocaleBundle to your AppKernel.php:

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new ConnectSB\TranslationBundle\ConnectSBLocaleBundle()
        );
    }
}
```

2) Usage
--------

[](#2-usage)

In the controller you can get the country of the language with the following method:

```
    $this->get('connect_sb_locale_service')->getCountryOfLocale('en');
```

In Twig you can use the `locale_to_country` filter.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/connectsb-localebundle/health.svg)

```
[![Health](https://phpackages.com/badges/connectsb-localebundle/health.svg)](https://phpackages.com/packages/connectsb-localebundle)
```

###  Alternatives

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[devaslanphp/auto-translate

Auto generate translation JSON files

6627.3k](/packages/devaslanphp-auto-translate)

PHPackages © 2026

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