PHPackages                             phpixie/amalgama - 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. phpixie/amalgama

ActiveLibrary[Localization &amp; i18n](/categories/localization)

phpixie/amalgama
================

PHPixie internationalization library

2.2.x-dev(11y ago)494BSDPHP

Since Nov 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/nxeed/PHPixie-Amalgama)[ Packagist](https://packagist.org/packages/phpixie/amalgama)[ RSS](/packages/phpixie-amalgama/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Internationalization Module for PHPixie
=======================================

[](#internationalization-module-for-phpixie)

- Simple to use
- No lang param in url for default language
- Params in translations
- Auto routes modify

Setup
-----

[](#setup)

- Define this package in "require" section of *composer.json*

```
"phpixie/amalgama": "2.*@dev"
```

- Update packages

```
php composer.phar update -o  --prefer-dist
```

- Add a config file under */assets/config/amalgama.php*

```
return array(
  // The list of languages
  'list' => array('en', 'ru', 'kk'),
  // Default language
  'default' => 'en',
  // For using autorouting extension
  'autorouting' => true,
  // Names of routes for except them from autorouting extension
  'autoroutingExcept' => '^admin_'
);
```

- Override your *Pixie.php*

```
namespace App;

class Pixie extends \PHPixie\Amalgama\Pixie {
  ...
  protected function after_bootstrap() {
    parent::after_bootstrap();
  }
}
```

- Define module in your *Pixie.php*

```
protected $modules = array(
  ...
  'amalgama' => '\PHPixie\Amalgama'
);
```

- Override your base controller

```
