mvccore / ext-tool-locale
MvcCore - Extension - Tool - Locale - properly set and get system locale settings by PHP ` setlocale();` across any system platform.
v5.2.2
2024-04-12 22:53 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