PHPackages                             twi/multi-domain-locale-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. twi/multi-domain-locale-bundle

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

twi/multi-domain-locale-bundle
==============================

Simple locale bundle for symfony2

07PHP

Since Feb 3Pushed 12y ago1 watchersCompare

[ Source](https://github.com/thomaswiener/MultiDomainLocaleBundle)[ Packagist](https://packagist.org/packages/twi/multi-domain-locale-bundle)[ RSS](/packages/twi-multi-domain-locale-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

MultiDomainLocaleBundle [![Build Status](https://camo.githubusercontent.com/ea11be640ac84bd209542aab064a2f25b8d7beb2c3a93f95d0279e49f9b41f9e/68747470733a2f2f7472617669732d63692e6f72672f74686f6d61737769656e65722f4d756c7469446f6d61696e4c6f63616c6542756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/thomaswiener/MultiDomainLocaleBundle)
===================================================================================================================================================================================================================================================================================================================================================================

[](#multidomainlocalebundle-)

General
-------

[](#general)

Why another locale bundle? Good question.

We used different approaches (jms i18n bundle, lunatics ...) to finally got our locale configuration up and running, but at the end we always had issues with requirements that were not included.

This bundle is for you if you ....

- are using locales that combine language and country: de\_DE, fr\_FR, de\_CH
- have different domains (mycompany.de, mycompany.ch, mycompany.fr)
- want to allow only certain locales for certain domains (eg. .de =&gt; de\_DE ; .ch =&gt; de\_CH, fr\_CH, it\_CH ; .fr =&gt; fr\_FR)
- don't want to use cookies to store the locale settings

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

[](#installation)

The installation of MultiDomainLocaleBundle is pretty straight forward. Just add the following to your composer.json:

```
// composer.json
{
    // ...
    require: {
        // ...
        "twi/multi-domain-locale-bundle": "1.0.*@dev"
    }
}

```

Update your lib with composer update:

```
php composer.phar update

```

Add the bundle to your AppKernel:

```
