Download the PHP package aimeos/ai-zend2-i18n without Composer

On this page you can find all versions of the php package aimeos/ai-zend2-i18n. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ai-zend2-i18n

Aimeos logo

Aimeos Zend2 I18n adapter

Build Status Coverage Status Scrutinizer Code Quality License

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

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. If you don't have composer installed yet, you can execute this string on the command line to download it:

Add the ai-zend2-i18n extension to the "require" section of your file:

If you don't want to use the latest version, you can also install any release. The list of releases is available at Packagist. Afterwards you only need to execute the composer update command on the command line:

Setup

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

The object is an instance of the 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 method.

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

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:

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

License

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

Links


All versions of ai-zend2-i18n with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
zendframework/zend-i18n Version ~2.3
zendframework/zend-servicemanager Version ~2.3
composer/installers Version ^1.0
aimeos/aimeos-core Version 2018.10.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aimeos/ai-zend2-i18n contains the following files

Loading the files please wait ....