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

This package is auto-updated.

Last update: 2024-11-21 16:00:59 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