From 82def739448270fb717250a9b4dac7007134b213 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Fri, 17 Jan 2020 13:00:02 +0300 Subject: [PATCH] #712 Centralize currency config --- .../advs-module/resources/config/settings.php | 46 +- resources/streams/config/currencies.php | 1228 ++++++++++++++++- 2 files changed, 1220 insertions(+), 54 deletions(-) diff --git a/addons/default/visiosoft/advs-module/resources/config/settings.php b/addons/default/visiosoft/advs-module/resources/config/settings.php index 3c67efddd..83b74fbb0 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings.php @@ -15,15 +15,6 @@ return [ ], - 'site_address' => [ - 'type' => 'anomaly.field_type.text', - 'bind' => 'adv.site_address', - 'env' => 'ADV_SITE_ADDRESS', - 'config' => [ - 'default_value' => 'visiosoft.com.tr', - 'disabled' => true, - ], - ], "favicon" => [ "type" => "anomaly.field_type.file", "config" => [ @@ -110,13 +101,6 @@ return [ "default_value" => 1091, ] ], - - - 'contact_mail' => [ - 'type' => 'anomaly.field_type.email', - 'bind' => 'adv.contact_mail', - 'env' => 'ADV_MAIL', - ], 'google_map_key' => [ 'type' => 'anomaly.field_type.text', 'bind' => 'adv.google_map_key', @@ -184,25 +168,12 @@ return [ "default_value" => "1eea72940f3868c77420" ] ], - 'default_currency' => [ - 'type' => 'anomaly.field_type.select', - 'bind' => 'adv.default_currency', - 'env' => 'ADV_CURRENCY', - 'config' => [ - 'handler' => 'currencies', - "default_value" => 'USD', - ], - ], 'default_GET' => [ - 'type' => 'anomaly.field_type.select', + 'type' => 'anomaly.field_type.boolean', 'bind' => 'adv.default_GET', 'env' => 'ADV_GET', 'config' => [ 'default_value' => 0, - 'options' => [ - 0 => 'False', - 1 => 'True', - ], ], ], 'twitter' => [ @@ -299,21 +270,12 @@ return [ return [config('streams::currencies.default')]; }, 'options' => function () { - $json = file_get_contents("https://openexchangerates.org/api/currencies.json"); + $array = config('streams::currencies.supported'); $cur = array(); - foreach (json_decode($json, true) as $key => $value) { - $cur[$key] = $value; + foreach ($array as $key => $value) { + $cur[$key] = $value['name']; } return $cur; - // return array_combine( - // $keys = array_keys($config->get('streams::locales.supported')), - // array_map( - // function ($locale) { - // return trans('streams::locale.' . $locale . '.name') . ' (' . $locale . ')'; - // }, - // $keys - // ) - // ); }, ], ], diff --git a/resources/streams/config/currencies.php b/resources/streams/config/currencies.php index b47e46dd0..da0f58383 100644 --- a/resources/streams/config/currencies.php +++ b/resources/streams/config/currencies.php @@ -11,7 +11,9 @@ return [ | */ - 'enabled' => explode(',', env('ENABLED_CURRENCIES', 'USD')), + 'enabled' => explode(',', + env('ENABLED_CURRENCIES', + 'USD')), /* |-------------------------------------------------------------------------- @@ -23,7 +25,8 @@ return [ | */ - 'default' => env('DEFAULT_CURRENCY', 'USD'), + 'default' => env('DEFAULT_CURRENCY', + 'USD'), /* |-------------------------------------------------------------------------- @@ -37,20 +40,1221 @@ return [ 'supported' => [ 'USD' => [ - 'name' => 'US Dollar', + 'name' => 'US Dollar', 'direction' => 'ltr', - 'symbol' => '$', + 'symbol' => '', 'separator' => ',', - 'point' => '.', - 'decimals' => 2, + 'point' => '.', + 'decimals' => 2, ], 'TRY' => [ - 'name' => 'Türk Lirası', + 'name' => 'Türk Lirası', 'direction' => 'ltr', - 'symbol' => '₺', + 'symbol' => 'TL', 'separator' => ',', - 'point' => '.', - 'decimals' => 2, + 'point' => '.', + 'decimals' => 2, ], - ], -]; + 'AED' => [ + 'name' => 'UAE Dirham', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'د.إ', + ], + 'AFN' => [ + 'name' => 'Afghani', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Af', + ], + 'ALL' => [ + 'name' => 'Lek', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'L', + ], + 'AMD' => [ + 'name' => 'Armenian Dram', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Դ', + ], + 'AOA' => [ + 'name' => 'Kwanza', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Kz', + ], + 'ARS' => [ + 'name' => 'Argentine Peso', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'AUD' => [ + 'name' => 'Australian Dollar', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ARS', + ], + 'AWG' => [ + 'name' => 'Aruban Guilder/Florin', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ƒ', + ], + 'AZN' => [ + 'name' => 'Azerbaijanian Manat', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ман', + ], + 'BAM' => [ + 'name' => 'Konvertibilna Marka', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'КМ', + ], + 'BBD' => [ + 'name' => 'Barbados Dollar', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'BBD', + ], + 'BDT' => [ + 'name' => 'Taka', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '৳', + ], + 'BGN' => [ + 'name' => 'Bulgarian Lev', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'лв', + ], + 'BHD' => [ + 'name' => 'Bahraini Dinar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ب.د', + ], + 'BIF' => [ + 'name' => 'Burundi Franc', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₣', + ], + 'BMD' => [ + 'name' => 'Bermudian Dollar', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'BMD', + ], + 'BND' => [ + 'name' => 'Brunei Dollar', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'BND', + ], + 'BOB' => [ + 'name' => 'Boliviano', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Bs.', + ], + 'BRL' => [ + 'name' => 'Brazilian Real', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'R$', + ], + 'BSD' => [ + 'name' => 'Bahamian Dollar', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'BSD', + ], + 'BTN' => [ + 'name' => 'Ngultrum', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '', + ], + 'BWP' => [ + 'name' => 'Pula', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'P', + ], + 'BYN' => [ + 'name' => 'Belarusian Ruble', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Br', + ], + 'BZD' => [ + 'name' => 'Belize Dollar', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'BZD', + ], + 'CAD' => [ + 'name' => 'Canadian Dollar', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'CAD', + ], + 'CDF' => [ + 'name' => 'Congolese Franc', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₣', + ], + 'CHF' => [ + 'name' => 'Swiss Franc', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₣', + ], + 'CLP' => [ + 'name' => 'Chilean Peso', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'CLP', + ], + 'CNY' => [ + 'name' => 'Yuan', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '¥', + ], + 'COP' => [ + 'name' => 'Colombian Peso', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'COP', + ], + 'CRC' => [ + 'name' => 'Costa Rican Colon', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₡', + ], + 'CUP' => [ + 'name' => 'Cuban Peso', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'CUP', + ], + 'CVE' => [ + 'name' => 'Cape Verde Escudo', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'CVE', + ], + 'CZK' => [ + 'name' => 'Czech Koruna', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Kč', + ], + 'DJF' => [ + 'name' => 'Djibouti Franc', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₣', + ], + 'DKK' => [ + 'name' => 'Danish Krone', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'kr', + ], + 'DOP' => [ + 'name' => 'Dominican Peso', + 'direction' => 'rtr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'DOP', + ], + 'DZD' => [ + 'name' => 'Algerian Dinar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'د.ج', + ], + 'EGP' => [ + 'name' => 'Egyptian Pound', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '£', + ], + 'ERN' => [ + 'name' => 'Nakfa', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Nfk', + ], + 'ETB' => [ + 'name' => 'Ethiopian Birr', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '', + ], + 'EUR' => [ + 'name' => 'Euro', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '€', + ], + 'FJD' => [ + 'name' => 'Fiji Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'FKP' => [ + 'name' => 'Falkland Islands Pound', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '£', + ], + 'GBP' => [ + 'name' => 'Pound Sterling', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '£', + ], + 'GEL' => [ + 'name' => 'Lari', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ლ', + ], + 'GHS' => [ + 'name' => 'Cedi', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₵', + ], + 'GIP' => [ + 'name' => 'Gibraltar Pound', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '£', + ], + 'GMD' => [ + 'name' => 'Dalasi', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'D', + ], + 'GNF' => [ + 'name' => 'Guinea Franc', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₣', + ], + 'GTQ' => [ + 'name' => 'Quetzal', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Q', + ], + 'GYD' => [ + 'name' => 'Guyana Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'HKD' => [ + 'name' => 'Hong Kong Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'HNL' => [ + 'name' => 'Lempira', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'L', + ], + 'HRK' => [ + 'name' => 'Croatian Kuna', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Kn', + ], + 'HTG' => [ + 'name' => 'Gourde', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'G', + ], + 'HUF' => [ + 'name' => 'Forint', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Ft', + ], + 'IDR' => [ + 'name' => 'Rupiah', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Rp', + ], + 'ILS' => [ + 'name' => 'New Israeli Shekel', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₪', + ], + 'INR' => [ + 'name' => 'Indian Rupee', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₹', + ], + 'IQD' => [ + 'name' => 'Iraqi Dinar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ع.د', + ], + 'IRR' => [ + 'name' => 'Iranian Rial', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '﷼', + ], + 'ISK' => [ + 'name' => 'Iceland Krona', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Kr', + ], + 'JMD' => [ + 'name' => 'Jamaican Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'JOD' => [ + 'name' => 'Jordanian Dinar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'د.ا', + ], + 'JPY' => [ + 'name' => 'Yen', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '¥', + ], + 'KES' => [ + 'name' => 'Kenyan Shilling', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Sh', + ], + 'KGS' => [ + 'name' => 'Som', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '', + ], + 'KHR' => [ + 'name' => 'Riel', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '៛', + ], + 'KPW' => [ + 'name' => 'North Korean Won', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₩', + ], + 'KRW' => [ + 'name' => 'South Korean Won', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₩', + ], + 'KWD' => [ + 'name' => 'Kuwaiti Dinar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'د.ك', + ], + 'KYD' => [ + 'name' => 'Cayman Islands Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'KZT' => [ + 'name' => 'Tenge', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '〒', + ], + 'LAK' => [ + 'name' => 'Kip', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₭', + ], + 'LBP' => [ + 'name' => 'Lebanese Pound', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ل.ل', + ], + 'LKR' => [ + 'name' => 'Sri Lanka Rupee', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Rs', + ], + 'LRD' => [ + 'name' => 'Liberian Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'LSL' => [ + 'name' => 'Loti', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'L', + ], + 'LYD' => [ + 'name' => 'Libyan Dinar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ل.د', + ], + 'MAD' => [ + 'name' => 'Moroccan Dirham', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'د.م.', + ], + 'MDL' => [ + 'name' => 'Moldovan Leu', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'L', + ], + 'MGA' => [ + 'name' => 'Malagasy Ariary', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '', + ], + 'MKD' => [ + 'name' => 'Denar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ден', + ], + 'MMK' => [ + 'name' => 'Kyat', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'K', + ], + 'MNT' => [ + 'name' => 'Tugrik', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₮', + ], + 'MOP' => [ + 'name' => 'Pataca', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'P', + ], + 'MRU' => [ + 'name' => 'Ouguiya', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'UM', + ], + 'MUR' => [ + 'name' => 'Mauritius Rupee', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₨', + ], + 'MVR' => [ + 'name' => 'Rufiyaa', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ރ.', + ], + 'MWK' => [ + 'name' => 'Kwacha', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'MK', + ], + 'MXN' => [ + 'name' => 'Mexican Peso', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'MYR' => [ + 'name' => 'Malaysian Ringgit', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'RM', + ], + 'MZN' => [ + 'name' => 'Metical', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'MTn', + ], + 'NAD' => [ + 'name' => 'Namibia Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'NGN' => [ + 'name' => 'Naira', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₦', + ], + 'NIO' => [ + 'name' => 'Cordoba Oro', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'C$', + ], + 'NOK' => [ + 'name' => 'Norwegian Krone', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'kr', + ], + 'NPR' => [ + 'name' => 'Nepalese Rupee', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₨', + ], + 'NZD' => [ + 'name' => 'New Zealand Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'OMR' => [ + 'name' => 'Rial Omani', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ر.ع.', + ], + 'PAB' => [ + 'name' => 'Balboa', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'B/.', + ], + 'PEN' => [ + 'name' => 'Nuevo Sol', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'S/.', + ], + 'PGK' => [ + 'name' => 'Kina', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'K', + ], + 'PHP' => [ + 'name' => 'Philippine Peso', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₱', + ], + 'PKR' => [ + 'name' => 'Pakistan Rupee', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₨', + ], + 'PLN' => [ + 'name' => 'PZloty', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'zł', + ], + 'PYG' => [ + 'name' => 'Guarani', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₲', + ], + 'QAR' => [ + 'name' => 'Qatari Rial', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ر.ق', + ], + 'RON' => [ + 'name' => 'Leu', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'L', + ], + 'RSD' => [ + 'name' => 'Serbian Dinar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'din', + ], + 'RUB' => [ + 'name' => 'Russian Ruble', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'р. ', + ], + 'RWF' => [ + 'name' => 'Rwanda Franc', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₣', + ], + 'SAR' => [ + 'name' => 'Saudi Riyal', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ر.س', + ], + 'SBD' => [ + 'name' => 'Solomon Islands Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'SCR' => [ + 'name' => 'Seychelles Rupee', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₨', + ], + 'SDG' => [ + 'name' => 'Sudanese Pound', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '£', + ], + 'SEK' => [ + 'name' => 'Swedish Krona', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'kr', + ], + 'SGD' => [ + 'name' => 'Singapore Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'SHP' => [ + 'name' => 'Saint Helena Pound', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '£', + ], + 'SLL' => [ + 'name' => 'Leone', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Le', + ], + 'SOS' => [ + 'name' => 'Somali Shilling', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Sh', + ], + 'SRD' => [ + 'name' => 'Suriname Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'STN' => [ + 'name' => 'Dobra', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Db', + ], + 'SYP' => [ + 'name' => 'Syrian Pound', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ل.س', + ], + 'SZL' => [ + 'name' => 'Lilangeni', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'L', + ], + 'THB' => [ + 'name' => 'Baht', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '฿', + ], + 'TJS' => [ + 'name' => 'Somoni', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ЅМ', + ], + 'TMT' => [ + 'name' => 'Manat', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'm', + ], + 'TND' => [ + 'name' => 'Tunisian Dinar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'د.ت', + ], + 'TOP' => [ + 'name' => 'Pa’anga', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'T$', + ], + 'TTD' => [ + 'name' => 'Trinidad and Tobago Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'TWD' => [ + 'name' => 'Taiwan Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'TZS' => [ + 'name' => 'Tanzanian Shilling', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Sh', + ], + 'UAH' => [ + 'name' => 'Hryvnia', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₴', + ], + 'UGX' => [ + 'name' => 'Uganda Shilling', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Sh', + ], + 'USD' => [ + 'name' => 'US Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'UYU' => [ + 'name' => 'Peso Uruguayo', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'UZS' => [ + 'name' => 'Uzbekistan Sum', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '', + ], + 'VEF' => [ + 'name' => 'Bolivar Fuerte', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Bs F', + ], + 'VND' => [ + 'name' => 'Dong', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₫', + ], + 'VUV' => [ + 'name' => 'Vatu', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'Vt', + ], + 'WST' => [ + 'name' => 'Tala', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'T', + ], + 'XAF' => [ + 'name' => 'CFA Franc BCEAO', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₣', + ], + 'XCD' => [ + 'name' => 'East Caribbean Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$', + ], + 'XPF' => [ + 'name' => 'CFP Franc', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '₣', + ], + 'YER' => [ + 'name' => 'Yemeni Rial', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '﷼', + ], + 'ZAR' => [ + 'name' => 'Rand', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'R', + ], + 'ZMW' => [ + 'name' => 'Zambian Kwacha', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => 'ZK', + ], + 'ZWL' => [ + 'name' => 'Zimbabwe Dollar', + 'direction' => 'ltr', + 'separator' => ',', + 'point' => '.', + 'decimals' => 2, + 'symbol' => '$',] + + + ] +]; \ No newline at end of file