Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/vendor
/composer.lock
/.phpunit.cache
/.idea/

/tools/*
!/tools/ecs/composer.json
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"license": "MIT",
"require": {
"php": "^8.1",
"brick/math": "~0.12.0|~0.13.0|~0.14.0"
"brick/math": "~0.12.0|~0.13.0|~0.14.0",
"symfony/deprecation-contracts": "^2.2|^3.0"
},
"require-dev": {
"ext-dom": "*",
Expand Down
105 changes: 105 additions & 0 deletions data/country-to-currency-historical.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<?php return [
'AD' => ['ADP', 'ESP', 'FRF'],
'AF' => ['AFA'],
'AL' => ['ALK'],
'AM' => ['RUR'],
'AN' => ['ANG'],
'AO' => ['AOK', 'AON', 'AOR'],
'AR' => ['ARA', 'ARP', 'ARY'],
'AT' => ['ATS'],
'AX' => ['FIM'],
'AZ' => ['AYM', 'AZM', 'RUR'],
'BA' => ['BAD'],
'BE' => ['BEC', 'BEF', 'BEL'],
'BG' => ['BGJ', 'BGK', 'BGL', 'BGN'],
'BL' => ['FRF'],
'BQ' => ['BOP'],
'BR' => ['BRB', 'BRC', 'BRE', 'BRN', 'BRR'],
'BU' => ['BUK'],
'BY' => ['BYB', 'BYR', 'RUR'],
'CH' => ['CHC'],
'CS' => ['CSJ', 'CSK', 'CSD', 'EUR'],
Comment thread
survik1 marked this conversation as resolved.
Resolved
'CU' => ['CUC'],
'CW' => ['ANG'],
'CY' => ['CYP'],
'DD' => ['DDM'],
'DE' => ['DEM'],
'EC' => ['ECS', 'ECV'],
'EE' => ['EEK'],
'ES' => ['ESA', 'ESB', 'ESP'],
'FI' => ['FIM'],
'FQ' => ['FRF'],
'FR' => ['FRF'],
'GE' => ['GEK', 'RUR'],
'GF' => ['FRF'],
'GH' => ['GHC', 'GHP'],
'GN' => ['GNE', 'GNS'],
'GP' => ['FRF'],
'GQ' => ['GQE'],
'GR' => ['GRD'],
'GW' => ['GWE', 'GWP'],
'HR' => ['HRD', 'HRK'],
'IE' => ['IEP'],
'IL' => ['ILP', 'ILR'],
'IS' => ['ISJ'],
'IT' => ['ITL'],
'KG' => ['RUR'],
'KZ' => ['RUR'],
'LA' => ['LAJ'],
'LS' => ['LSM', 'ZAL'],
'LT' => ['LTL', 'LTT'],
'LU' => ['LUC', 'LUF', 'LUL'],
'LV' => ['LVL', 'LVR'],
'MC' => ['FRF'],
'MD' => ['RUR'],
'MF' => ['FRF'],
'MG' => ['MGF'],
'ML' => ['MLF'],
'MQ' => ['FRF'],
'MR' => ['MRO'],
'MT' => ['MTL', 'MTP'],
'MV' => ['MVQ'],
'MW' => ['MWK'],
Comment thread
survik1 marked this conversation as resolved.
Resolved
'MX' => ['MXP'],
'MZ' => ['MZE', 'MZM'],
'NI' => ['NIC'],
'NL' => ['NLG'],
'PE' => ['PEH', 'PEI', 'PEN', 'PES'],
Comment thread
survik1 marked this conversation as resolved.
Resolved
'PL' => ['PLZ'],
'PM' => ['FRF'],
'PT' => ['PTE'],
'RE' => ['FRF'],
'RH' => ['RHD'],
'RO' => ['ROK', 'ROL', 'RON'],
Comment thread
survik1 marked this conversation as resolved.
Resolved
'RU' => ['RUR'],
'SD' => ['SDD', 'SDP'],
'SI' => ['SIT'],
'SK' => ['SKK'],
'SL' => ['SLL'],
'SM' => ['ITL'],
'SR' => ['SRG'],
'SS' => ['SDG'],
Comment thread
survik1 marked this conversation as resolved.
Resolved
'ST' => ['STD'],
'SU' => ['SUR'],
'SX' => ['ANG'],
'SZ' => ['SZL'],
Comment thread
survik1 marked this conversation as resolved.
Resolved
'TJ' => ['RUR', 'TJR'],
'TL' => ['IDR', 'TPE'],
Comment thread
survik1 marked this conversation as resolved.
Resolved
'TM' => ['RUR', 'TMM'],
'TR' => ['TRL', 'TRY'],
Comment thread
survik1 marked this conversation as resolved.
Resolved
'UA' => ['UAK'],
'UG' => ['UGS', 'UGW'],
'US' => ['USS'],
'UY' => ['UYN', 'UYP'],
'UZ' => ['RUR'],
'VA' => ['ITL'],
'VE' => ['VEB', 'VEF'],
'VN' => ['VNC'],
'YD' => ['YDD'],
'YT' => ['FRF'],
'YU' => ['YUD', 'YUM', 'YUN'],
'ZA' => ['ZAL'],
'ZM' => ['ZMK'],
'ZR' => ['ZRN', 'ZRZ'],
'ZW' => ['ZWC', 'ZWD', 'ZWN', 'ZWR', 'ZWL'],
];
10 changes: 5 additions & 5 deletions data/country-to-currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'BD' => ['BDT'],
'BE' => ['EUR'],
'BF' => ['XOF'],
'BG' => ['BGN'],
'BG' => ['EUR'],
Comment thread
survik1 marked this conversation as resolved.
Resolved
'BH' => ['BHD'],
'BI' => ['BIF'],
'BJ' => ['XOF'],
Expand Down Expand Up @@ -48,9 +48,9 @@
'CN' => ['CNY'],
'CO' => ['COP'],
'CR' => ['CRC'],
'CU' => ['CUP', 'CUC'],
'CU' => ['CUP'],
'CV' => ['CVE'],
'CW' => ['ANG'],
'CW' => ['XCG'],
'CX' => ['AUD'],
'CY' => ['EUR'],
'CZ' => ['CZK'],
Expand Down Expand Up @@ -206,7 +206,7 @@
'SS' => ['SSP'],
'ST' => ['STN'],
'SV' => ['SVC', 'USD'],
'SX' => ['ANG'],
'SX' => ['XCG'],
'SY' => ['SYP'],
'SZ' => ['SZL'],
'TC' => ['USD'],
Expand Down Expand Up @@ -244,5 +244,5 @@
'YT' => ['EUR'],
'ZA' => ['ZAR'],
'ZM' => ['ZMW'],
'ZW' => ['ZWG']
'ZW' => ['ZWG'],
];
Loading