detailnet / dfw-locale-module
Zend Framework Module for localization
Requires
- php: ^7.2
- zendframework/zend-http: ^2.9
- zendframework/zend-loader: ^2.5.1
- zendframework/zend-modulemanager: ^2.7.2
- zendframework/zend-mvc: ^3.0.1
- zendframework/zend-servicemanager: ^3.1
- zendframework/zend-stdlib: ^3.1
Requires (Dev)
- phpmd/phpmd: ^2.2
- phpunit/phpunit: ^7.0
- roave/security-advisories: dev-master
- slm/locale: ^0.3
- squizlabs/php_codesniffer: ^3.2
- zendframework/zend-i18n: ^2.9
- zendframework/zend-view: ^2.9.0
Suggests
- slm/locale: For automatic detection of locales for ZF
- zendframework/zend-i18n: For usage of the View helpers
- zendframework/zend-view: For usage of the View helpers
README
Introduction
This module contains tools localized applications (based on the SlmLocale module for ZF2).
Requirements
Zend Framework 2 Skeleton Application (or compatible architecture)
Installation
Install the module through Composer using the following steps:
-
cd my/project/directory
-
Create a
composer.json
file with following contents (or update your existing file accordingly):{ "require": { "detailnet/dfw-locale-module": "^1.0" } }
-
Install Composer via
curl -s http://getcomposer.org/installer | php
(on Windows, download the installer and execute it with PHP) -
Run
php composer.phar self-update
-
Run
php composer.phar install
-
Open
configs/application.config.php
and add following key to yourmodules
:'Detail\Locale',
-
Copy
vendor/detailnet/dfw-locale-module/config/detail_locale.local.php.dist
into your application'sconfig/autoload
directory, rename it todetail_locale.local.php
and make the appropriate changes.
Usage
tbd