Skip to content

Commit

Permalink
Update country => currency map
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Feb 24, 2024
1 parent 3c6232d commit 2059199
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions src/Support/Currencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

declare(strict_types=1);

/**
* @see https://github.com/brick/money/blob/master/data/country-to-currency.php
*/
return [
'AD' => 'EUR',
'AE' => 'AED',
Expand All @@ -18,6 +21,7 @@
'AT' => 'EUR',
'AU' => 'AUD',
'AW' => 'AWG',
'AX' => 'EUR',
'AZ' => 'AZN',
'BA' => 'BAM',
'BB' => 'BBD',
Expand All @@ -32,6 +36,7 @@
'BM' => 'BMD',
'BN' => 'BND',
'BO' => 'BOB',
'BQ' => 'USD',
'BR' => 'BRL',
'BS' => 'BSD',
'BT' => 'BTN',
Expand All @@ -43,7 +48,7 @@
'CC' => 'AUD',
'CD' => 'CDF',
'CF' => 'XAF',
'CG' => 'CDF',
'CG' => 'XAF',
'CH' => 'CHF',
'CI' => 'XOF',
'CK' => 'NZD',
Expand All @@ -52,7 +57,7 @@
'CN' => 'CNY',
'CO' => 'COP',
'CR' => 'CRC',
'CU' => 'CUP',
'CU' => 'CUP', // and CUC
'CV' => 'CVE',
'CW' => 'ANG',
'CX' => 'AUD',
Expand Down Expand Up @@ -82,7 +87,7 @@
'GD' => 'XCD',
'GE' => 'GEL',
'GF' => 'EUR',
'GG' => 'GGP',
'GG' => 'GBP',
'GH' => 'GHS',
'GI' => 'GIP',
'GL' => 'DKK',
Expand All @@ -99,20 +104,20 @@
'HK' => 'HKD',
'HM' => 'AUD',
'HN' => 'HNL',
'HR' => 'HRK',
'HT' => 'HTG',
'HR' => 'EUR',
'HT' => 'HTG', // and USD
'HU' => 'HUF',
'ID' => 'IDR',
'IE' => 'EUR',
'IL' => 'ILS',
'IM' => 'IMP',
'IM' => 'GBP',
'IN' => 'INR',
'IO' => 'USD',
'IQ' => 'IQD',
'IR' => 'IRR',
'IS' => 'ISK',
'IT' => 'EUR',
'JE' => 'JEP',
'JE' => 'GBP',
'JM' => 'JMD',
'JO' => 'JOD',
'JP' => 'JPY',
Expand All @@ -133,7 +138,7 @@
'LI' => 'CHF',
'LK' => 'LKR',
'LR' => 'LRD',
'LS' => 'LSL',
'LS' => 'LSL', // and ZAR
'LT' => 'EUR',
'LU' => 'EUR',
'LV' => 'EUR',
Expand All @@ -142,6 +147,7 @@
'MC' => 'EUR',
'MD' => 'MDL',
'ME' => 'EUR',
'MF' => 'EUR',
'MG' => 'MGA',
'MH' => 'USD',
'MK' => 'MKD',
Expand All @@ -151,7 +157,7 @@
'MO' => 'MOP',
'MP' => 'USD',
'MQ' => 'EUR',
'MR' => 'MRO',
'MR' => 'MRU',
'MS' => 'XCD',
'MT' => 'EUR',
'MU' => 'MUR',
Expand All @@ -160,7 +166,7 @@
'MX' => 'MXN',
'MY' => 'MYR',
'MZ' => 'MZN',
'NA' => 'NAD',
'NA' => 'NAD', // and ZAR
'NC' => 'XPF',
'NE' => 'XOF',
'NF' => 'AUD',
Expand All @@ -173,15 +179,15 @@
'NU' => 'NZD',
'NZ' => 'NZD',
'OM' => 'OMR',
'PA' => 'PAB',
'PA' => 'PAB', // and USD
'PE' => 'PEN',
'PF' => 'XPF',
'PG' => 'PGK',
'PH' => 'PHP',
'PK' => 'PKR',
'PL' => 'PLN',
'PM' => 'EUR',
'PN' => 'GBP',
'PN' => 'NZD',
'PR' => 'USD',
'PS' => 'ILS',
'PT' => 'EUR',
Expand All @@ -203,14 +209,14 @@
'SI' => 'EUR',
'SJ' => 'NOK',
'SK' => 'EUR',
'SL' => 'SLL',
'SL' => 'SLL', // and SLE
'SM' => 'EUR',
'SN' => 'XOF',
'SO' => 'SOS',
'SR' => 'SRD',
'SS' => 'SSP',
'ST' => 'STD',
'SV' => 'USD',
'ST' => 'STN',
'SV' => 'SVC', // and USD
'SX' => 'ANG',
'SY' => 'SYP',
'SZ' => 'SZL',
Expand All @@ -232,12 +238,13 @@
'TZ' => 'TZS',
'UA' => 'UAH',
'UG' => 'UGX',
'UM' => 'USD',
'US' => 'USD',
'UY' => 'UYU',
'UY' => 'UYU', // UYW
'UZ' => 'UZS',
'VA' => 'EUR',
'VC' => 'XCD',
'VE' => 'VEF',
'VE' => 'VES', // and VED
'VG' => 'USD',
'VI' => 'USD',
'VN' => 'VND',
Expand All @@ -248,6 +255,6 @@
'YE' => 'YER',
'YT' => 'EUR',
'ZA' => 'ZAR',
'ZM' => 'ZMK',
'ZM' => 'ZMW',
'ZW' => 'ZWL',
];

0 comments on commit 2059199

Please sign in to comment.