mvccore / ext-tool-locale
MvcCore - Extension - Tool - Locale - properly set and get system locale settings by PHP ` setlocale();` across any system platform.
v5.3.0
2024-11-21 15:01 UTC
Requires
- php: >=5.4.0
README
MvcCore extension to properly set and get system locale settings by PHP setlocale();
across any system platform.
Installation
composer require mvccore/ext-tool-locale
Usage
// Windows or Unix - syntax is the same: $configuredLocale = \MvcCore\Ext\Tools\Locale::SetLocale(LC_ALL, 'nl_NL@euro'); var_dump($configuredLocale); // Windows: Dutch_Netherlands.1252 // Unix: nl_NL@euro