Laminas MVC module for php installations with no i18n extension
$ composer require chuk-shirley/laminas-no-intl
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.)
],
];