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

This package is auto-updated.

Last update: 2024-10-13 00:04:17 UTC


README

Latest Stable Version License PHP Version

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