PHPackages                             aimeos/ai-zend2-i18n - 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. aimeos/ai-zend2-i18n

AbandonedArchivedAimeos-extension[Localization &amp; i18n](/categories/localization)

aimeos/ai-zend2-i18n
====================

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

2018.10.1(7y ago)46.3k↓100%2LGPL-3.0-or-laterPHPPHP &gt;=5.3.3

Since Dec 2Pushed 7y ago2 watchersCompare

[ Source](https://github.com/aimeos/ai-zend2-i18n)[ Packagist](https://packagist.org/packages/aimeos/ai-zend2-i18n)[ Docs](https://aimeos.org/)[ RSS](/packages/aimeos-ai-zend2-i18n/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (42)Used By (0)

[ ![Aimeos logo](https://camo.githubusercontent.com/e55b7a8426f14ba6040d604746b03b7e096af41ede8fead0ea817cbb8d60f998/68747470733a2f2f61696d656f732e6f72672f66696c6561646d696e2f74656d706c6174652f69636f6e732f6c6f676f2e706e67 "Aimeos")](https://aimeos.org/)Aimeos Zend2 I18n adapter
=========================

[](#aimeos-zend2-i18n-adapter)

[![Build Status](https://camo.githubusercontent.com/5db1b6119a402e7a7b1c5f34db270fe3203fd115964d53f48ceed87bb8cb9b53/68747470733a2f2f7472617669732d63692e6f72672f61696d656f732f61692d7a656e64322d6931386e2e737667)](https://travis-ci.org/aimeos/ai-zend2-i18n)[![Coverage Status](https://camo.githubusercontent.com/3c78c591c6b007ab9c903e54054a1d59be35f1c7f0bbd5ede8e8b3363a98b77c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f61696d656f732f61692d7a656e64322d6931386e2f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/aimeos/ai-zend2-i18n?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4a2e2be8f59b95a6d087ffe8299f1b7900b7d24262a5b3dfb79b7d6975b341c7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61696d656f732f61692d7a656e64322d6931386e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/aimeos/ai-zend2-i18n/?branch=master)[![License](https://camo.githubusercontent.com/b5a60cf86b3d745c9f923eca96ac5bb5f9f4df4f786e018c5b899c1f3b5a808e/68747470733a2f2f706f7365722e707567782e6f72672f61696d656f732f61692d7a656e64322d6931386e2f6c6963656e73652e737667)](https://packagist.org/packages/aimeos/ai-zend2-i18n)

The Aimeos web shop components can integrate into almost any PHP application and uses the infrastructure of the application for building URLs, caching content, configuration settings, logging messages, session handling, sending e-mails or handling translations.

The ai-zend2-i18n extension integrates the Zend I18n component for translating messages into Aimeos. It's useful if the Aimeos translations should be available in your application.

Table of content
----------------

[](#table-of-content)

- [Installation](#installation)
- [Setup](#setup)
- [License](#license)
- [Links](#links)

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

[](#installation)

To allow the Aimeos web shop components to retrive translations for the used strings, you have to install the adapter first. As every Aimeos extension, the easiest way is to install it via [composer](https://getcomposer.org/). If you don't have composer installed yet, you can execute this string on the command line to download it:

```
php -r "readfile('https://getcomposer.org/installer');" | php -- --filename=composer

```

Add the ai-zend2-i18n extension to the "require" section of your `composer.json` file:

```
"require": [
    "aimeos/ai-zend2-i18n": "dev-master",
    ...
],

```

If you don't want to use the latest version, you can also install any release. The list of releases is available at [Packagist](https://packagist.org/packages/aimeos/ai-zend2-i18n). Afterwards you only need to execute the composer update command on the command line:

```
composer update

```

Setup
-----

[](#setup)

Now add the Zend I18n object to the Aimeos context, which you have to create to get the Aimeos components running:

```
$i18nPaths = $aimeos->getI18nPaths();
$i18n = new \MW_Translation_Zend2( $i18nPaths, 'gettext', 'en', array( 'disableNotices' => true ) );
$context->setI18n( array( 'en' => $i18n );

```

The `$aimeos` object is an instance of the `Aimeos` class from the core. The code above would only set up the translation for English but you can also set up several languages at once and pass them in the array to the `setI18n()` method.

To speed up retrieving translated strings, you can wrap the translation object into the APC decorator before adding it to the context:

```
if( function_exists( 'apc_store' ) === true ) {
    $i18n = new \MW_Translation_Decorator_APC( $i18n, 'myApcPrefix:' ) );
}

```

This would use the shared memory of the web server to store and retrieve the strings from there instead of the binary gettext "mo" files.

To overwrite translations by local ones you can furthermore added them on top:

```
    $i18n = new \MW_Translation_Decorator_Memory( $i18n, array( /*...*/ ) );

```

All translations from the second parameter would be used instead of the ones from the gettext files. The format of the translations must be:

```
'' => array(
    '' => array('',''),
),
'client/html' => array(
    'address' => array('Address','Addresses'),
),

```

License
-------

[](#license)

The Aimeos ai-zend2-i18n extension is licensed under the terms of the LGPLv3 license and is available for free.

Links
-----

[](#links)

- [Web site](https://aimeos.org/)
- [Documentation](https://aimeos.org/docs)
- [Help](https://aimeos.org/help)
- [Issue tracker](https://github.com/aimeos/ai-zend2-i18n/issues)
- [Source code](https://github.com/aimeos/ai-zend2-i18n)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% 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 ~35 days

Recently: every ~46 days

Total

41

Last Release

2777d ago

Major Versions

2015.10.2 → 2016.04.12016-01-21

2015.10.x-dev → 2016.07.12016-06-24

2016.10.x-dev → 2017.01.12016-12-17

2017.10.1 → 2018.01.12017-12-03

2017.10.x-dev → 2018.04.12018-04-04

PHP version history (2 changes)2014.x-devPHP &gt;=5.3.2

2016.01.1PHP &gt;=5.3.3

### Community

Maintainers

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

---

Top Contributors

[![aimeos](https://avatars.githubusercontent.com/u/8647429?v=4)](https://github.com/aimeos "aimeos (56 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

i18ntranslatezendadaptershope-commerceaimeos

### Embed Badge

![Health badge](/badges/aimeos-ai-zend2-i18n/health.svg)

```
[![Health](https://phpackages.com/badges/aimeos-ai-zend2-i18n/health.svg)](https://phpackages.com/packages/aimeos-ai-zend2-i18n)
```

###  Alternatives

[aimeos/aimeos-laravel

Cloud native, API first Laravel eCommerce package with integrated AI for ultra-fast online shops, marketplaces and complex B2B projects

8.6k214.7k3](/packages/aimeos-aimeos-laravel)[aimeos/ai-laravel

Laravel adapter for Aimeos e-commerce integration

971228.8k2](/packages/aimeos-ai-laravel)[aimeos/ai-typo3

TYPO3 adapter for Aimeos e-commerce integration

95392.1k1](/packages/aimeos-ai-typo3)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[punic/punic

PHP-Unicode CLDR

1542.9M29](/packages/punic-punic)[optimistdigital/nova-translatable

A laravel-translatable extension for Laravel Nova.

202427.4k5](/packages/optimistdigital-nova-translatable)

PHPackages © 2026

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