chuk-shirley / laminas-no-intl
Laminas MVC module for php installations with no internationalization extension
0.1.1
2020-07-08 21:23 UTC
Requires
- php: ^7.0
- laminas/laminas-i18n: ^2.10
Requires (Dev)
- laminas/laminas-modulemanager: ^2.8
- laminas/laminas-servicemanager: ^3.4
- laminas/laminas-view: ^2.11
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2025-01-09 07:36:10 UTC
README
Laminas MVC module for php installations with no i18n extension
Installation
$ composer require chuk-shirley/laminas-no-intl
Configuration
After installing the package, you'll need to add the module to your module config. This is typically found in /config/modules.config.php. Please ensure that this module is listed after Laminas\I18n.
return [ // ... other modules 'Laminas\I18n', 'NoIntl', ];
If you would like to use a locale other than en_US_POSIX
, you'll need to copy the configuration file from /config/no_intl.global.php.dist to your application's local config directory, remove the .dist suffix, and specify your locale in the configuration array.
return [ 'no_intl' => [ 'default_locale' => 'en_US_POSIX', // Rename to different locale (e.g. fr-CA, fr-FR, etc.) ], ];