To install the Zend\I18n
component and ZF3 localization resource package, you can use the following command:
php composer.phar require zendframework/zend-mvc-i18n
The Zend\I18n
component internally uses the intl
exstension of PHP. So you also need to install
that extension. For example, in Linux Ubuntu you do that with the following command:
sudo apt-get install php-intl
In Linux CentOS, use the following command (we assume you use PHP 7.0):
sudo yum install php70-intl