Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
136 changes: 85 additions & 51 deletions Resource/iban_registry.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

// iban_registry_202402r96.txt
// iban_registry_202412r99.txt

return
[
Expand Down Expand Up @@ -346,10 +346,10 @@
],
'EE' => [
'country_name' => 'Estonia',
'iban_structure' => 'EE2!n2!n2!n11!n1!n',
'bban_structure' => '2!n2!n11!n1!n',
'iban_regex' => '/^EE\\d{2}\\d{2}\\d{2}\\d{11}\\d{1}$/',
'bban_regex' => '/^\\d{2}\\d{2}\\d{11}\\d{1}$/',
'iban_structure' => 'EE2!n2!n14!n',
'bban_structure' => '2!n14!n',
'iban_regex' => '/^EE\\d{2}\\d{2}\\d{14}$/',
'bban_regex' => '/^\\d{2}\\d{14}$/',
'iban_length' => 20,
'bban_length' => 16,
'iban_electronic_format_example' => 'EE382200221020145685',
Expand All @@ -370,7 +370,7 @@
'iban_length' => 29,
'bban_length' => 25,
'iban_electronic_format_example' => 'EG380019000500000000263180002',
'iban_print_format_example' => 'EG380019000500000000263180002',
'iban_print_format_example' => 'EG38 0019 0005 0000 0000 2631 8000 2',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!',
'bank_identifier_regex' => '/^4!$/',
Expand Down Expand Up @@ -565,6 +565,23 @@
'branch_identifier_structure' => '',
'branch_identifier_regex' => '',
],
'HN' => [
'country_name' => 'Honduras',
'iban_structure' => 'HN2!n4!a20!n',
'bban_structure' => '4!a20!n',
'iban_regex' => '/^HN\\d{2}[A-Z]{4}\\d{20}$/',
'bban_regex' => '/^[A-Z]{4}\\d{20}$/',
'iban_length' => 28,
'bban_length' => 24,
'iban_electronic_format_example' => 'HN88CABF00000000000250005469',
'iban_print_format_example' => 'HN88 CABF 0000 0000 0002 5000 5469',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!a',
'bank_identifier_regex' => '/^[A-Z]{4}$/',
'branch_identifier_position' => '',
'branch_identifier_structure' => '',
'branch_identifier_regex' => '',
],
'HR' => [
'country_name' => 'Croatia',
'iban_structure' => 'HR2!n7!n10!n',
Expand Down Expand Up @@ -644,11 +661,11 @@
'iban_electronic_format_example' => 'IQ98NBIQ850123456789012',
'iban_print_format_example' => 'IQ98 NBIQ 8501 2345 6789 012',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4',
'bank_identifier_regex' => '/^4$/',
'bank_identifier_structure' => '4!a',
'bank_identifier_regex' => '/^[A-Z]{4}$/',
'branch_identifier_position' => '5-7',
'branch_identifier_structure' => '3',
'branch_identifier_regex' => '/^3$/',
'branch_identifier_structure' => '3!n',
'branch_identifier_regex' => '/^\\d{3}$/',
],
'IS' => [
'country_name' => 'Iceland',
Expand Down Expand Up @@ -998,8 +1015,8 @@
'bban_regex' => '/^[A-Z]{4}\\d{20}$/',
'iban_length' => 28,
'bban_length' => 24,
'iban_electronic_format_example' => 'NI04BAPR00000013000003558124',
'iban_print_format_example' => 'NI04 BAPR 0000 0013 0000 0355 8124',
'iban_electronic_format_example' => 'NI45BAPR00000013000003558124',
'iban_print_format_example' => 'NI45 BAPR 0000 0013 0000 0355 8124',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!a',
'bank_identifier_regex' => '/^[A-Z]{4}$/',
Expand Down Expand Up @@ -1041,23 +1058,6 @@
'branch_identifier_structure' => '',
'branch_identifier_regex' => '',
],
'PK' => [
'country_name' => 'Pakistan',
'iban_structure' => 'PK2!n4!a16!c',
'bban_structure' => '4!a16!c',
'iban_regex' => '/^PK\\d{2}[A-Z]{4}[A-Z0-9]{16}$/',
'bban_regex' => '/^[A-Z]{4}[A-Z0-9]{16}$/',
'iban_length' => 24,
'bban_length' => 20,
'iban_electronic_format_example' => 'PK36SCBL0000001123456702',
'iban_print_format_example' => 'PK36 SCBL 0000 0011 2345 6702',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!a',
'bank_identifier_regex' => '/^[A-Z]{4}$/',
'branch_identifier_position' => '',
'branch_identifier_structure' => '',
'branch_identifier_regex' => '',
],
'OM' => [
'country_name' => 'Oman',
'iban_structure' => 'OM2!n3!n16!c',
Expand All @@ -1075,6 +1075,23 @@
'branch_identifier_structure' => '',
'branch_identifier_regex' => '',
],
'PK' => [
'country_name' => 'Pakistan',
'iban_structure' => 'PK2!n4!a16!c',
'bban_structure' => '4!a16!c',
'iban_regex' => '/^PK\\d{2}[A-Z]{4}[A-Z0-9]{16}$/',
'bban_regex' => '/^[A-Z]{4}[A-Z0-9]{16}$/',
'iban_length' => 24,
'bban_length' => 20,
'iban_electronic_format_example' => 'PK36SCBL0000001123456702',
'iban_print_format_example' => 'PK36 SCBL 0000 0011 2345 6702',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!a',
'bank_identifier_regex' => '/^[A-Z]{4}$/',
'branch_identifier_position' => '',
'branch_identifier_structure' => '',
'branch_identifier_regex' => '',
],
'PL' => [
'country_name' => 'Poland',
'iban_structure' => 'PL2!n8!n16!n',
Expand Down Expand Up @@ -1122,9 +1139,9 @@
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!n',
'bank_identifier_regex' => '/^\\d{4}$/',
'branch_identifier_position' => '',
'branch_identifier_structure' => '',
'branch_identifier_regex' => '',
'branch_identifier_position' => '5-8',
'branch_identifier_structure' => '4!n',
'branch_identifier_regex' => '/^\\d{4}$/',
],
'QA' => [
'country_name' => 'Qatar',
Expand Down Expand Up @@ -1185,8 +1202,8 @@
'bban_regex' => '/^\\d{9}\\d{5}[A-Z0-9]{15}$/',
'iban_length' => 33,
'bban_length' => 29,
'iban_electronic_format_example' => 'RU1704452522540817810538091310419',
'iban_print_format_example' => 'RU17 0445 2522 5408 1781 0538 0913 1041 9',
'iban_electronic_format_example' => 'RU0304452522540817810538091310419',
'iban_print_format_example' => 'RU03 0445 2522 5408 1781 0538 0913 1041 9',
'bank_identifier_position' => '1-9',
'bank_identifier_structure' => '9!n',
'bank_identifier_regex' => '/^\\d{9}$/',
Expand Down Expand Up @@ -1272,7 +1289,7 @@
'bban_length' => 15,
'iban_electronic_format_example' => 'SI56263300012039086',
'iban_print_format_example' => 'SI56 2633 0001 2039 086',
'bank_identifier_position' => '1-5 1-4',
'bank_identifier_position' => '1-5',
'bank_identifier_structure' => '5!n',
'bank_identifier_regex' => '/^\\d{5}$/',
'branch_identifier_position' => '',
Expand All @@ -1289,7 +1306,7 @@
'bban_length' => 20,
'iban_electronic_format_example' => 'SK3112000000198742637541',
'iban_print_format_example' => 'SK31 1200 0000 1987 4263 7541',
'bank_identifier_position' => '2-6',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!n',
'bank_identifier_regex' => '/^\\d{4}$/',
'branch_identifier_position' => '',
Expand All @@ -1306,7 +1323,7 @@
'bban_length' => 23,
'iban_electronic_format_example' => 'SM86U0322509800000000270100',
'iban_print_format_example' => 'SM86 U032 2509 8000 0000 0270 100',
'bank_identifier_position' => '1-4',
'bank_identifier_position' => '2-6',
'bank_identifier_structure' => '5!n',
'bank_identifier_regex' => '/^\\d{5}$/',
'branch_identifier_position' => '7-11',
Expand All @@ -1332,14 +1349,14 @@
],
'ST' => [
'country_name' => 'Sao Tome and Principe',
'iban_structure' => 'ST2!n4!n4!n11!n2!n',
'bban_structure' => '4!n4!n11!n2!n',
'iban_regex' => '/^ST\\d{2}\\d{4}\\d{4}\\d{11}\\d{2}$/',
'bban_regex' => '/^\\d{4}\\d{4}\\d{11}\\d{2}$/',
'iban_structure' => 'ST2!n8!n11!n2!n',
'bban_structure' => '8!n11!n2!n',
'iban_regex' => '/^ST\\d{2}\\d{8}\\d{11}\\d{2}$/',
'bban_regex' => '/^\\d{8}\\d{11}\\d{2}$/',
'iban_length' => 25,
'bban_length' => 21,
'iban_electronic_format_example' => 'ST68000200010192194210112',
'iban_print_format_example' => 'ST68 0002 0001 0192 1942 1011 2',
'iban_electronic_format_example' => 'ST23000100010051845310146',
'iban_print_format_example' => 'ST23 0001 0001 0051 8453 1014 6',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!n',
'bank_identifier_regex' => '/^\\d{4}$/',
Expand All @@ -1357,7 +1374,7 @@
'bban_length' => 24,
'iban_electronic_format_example' => 'SV62CENR00000000000000700025',
'iban_print_format_example' => 'SV 62 CENR 00000000000000700025',
'bank_identifier_position' => '1-3',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!a',
'bank_identifier_regex' => '/^[A-Z]{4}$/',
'branch_identifier_position' => '',
Expand All @@ -1374,7 +1391,7 @@
'bban_length' => 19,
'iban_electronic_format_example' => 'TL380080012345678910157',
'iban_print_format_example' => 'TL38 0080 0123 4567 8910 157',
'bank_identifier_position' => '1-2',
'bank_identifier_position' => '1-3',
'bank_identifier_structure' => '3!n',
'bank_identifier_regex' => '/^\\d{3}$/',
'branch_identifier_position' => '',
Expand All @@ -1391,7 +1408,7 @@
'bban_length' => 20,
'iban_electronic_format_example' => 'TN5910006035183598478831',
'iban_print_format_example' => 'TN59 1000 6035 1835 9847 8831',
'bank_identifier_position' => '1-5',
'bank_identifier_position' => '1-2',
'bank_identifier_structure' => '2!n',
'bank_identifier_regex' => '/^\\d{2}$/',
'branch_identifier_position' => '3-5',
Expand All @@ -1408,7 +1425,7 @@
'bban_length' => 22,
'iban_electronic_format_example' => 'TR330006100519786457841326',
'iban_print_format_example' => 'TR33 0006 1005 1978 6457 8413 26',
'bank_identifier_position' => '1-6',
'bank_identifier_position' => '1-5',
'bank_identifier_structure' => '5!n',
'bank_identifier_regex' => '/^\\d{5}$/',
'branch_identifier_position' => '',
Expand All @@ -1425,7 +1442,7 @@
'bban_length' => 25,
'iban_electronic_format_example' => 'UA213223130000026007233566001',
'iban_print_format_example' => 'UA21 3223 1300 0002 6007 2335 6600 1',
'bank_identifier_position' => '1-3',
'bank_identifier_position' => '1-6',
'bank_identifier_structure' => '6!n',
'bank_identifier_regex' => '/^\\d{6}$/',
'branch_identifier_position' => '',
Expand All @@ -1442,7 +1459,7 @@
'bban_length' => 18,
'iban_electronic_format_example' => 'VA59001123000012345678',
'iban_print_format_example' => 'VA59 001 1230 0001 2345 678',
'bank_identifier_position' => '1-4',
'bank_identifier_position' => '1-3',
'bank_identifier_structure' => '3!n',
'bank_identifier_regex' => '/^\\d{3}$/',
'branch_identifier_position' => '',
Expand All @@ -1459,7 +1476,7 @@
'bban_length' => 20,
'iban_electronic_format_example' => 'VG96VPVG0000012345678901',
'iban_print_format_example' => 'VG96 VPVG 0000 0123 4567 8901',
'bank_identifier_position' => '1-2',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!a',
'bank_identifier_regex' => '/^[A-Z]{4}$/',
'branch_identifier_position' => '',
Expand All @@ -1476,11 +1493,28 @@
'bban_length' => 16,
'iban_electronic_format_example' => 'XK051212012345678906',
'iban_print_format_example' => 'XK05 1212 0123 4567 8906',
'bank_identifier_position' => '',
'bank_identifier_position' => '1-2',
'bank_identifier_structure' => '2!n',
'bank_identifier_regex' => '/^\\d{2}$/',
'branch_identifier_position' => '3-4',
'branch_identifier_structure' => '2!n',
'branch_identifier_regex' => '/^\\d{2}$/',
],
'YE' => [
'country_name' => 'Yemen',
'iban_structure' => 'YE2!n4!a4!n18!c',
'bban_structure' => '4!a4!n18!c',
'iban_regex' => '/^YE\\d{2}[A-Z]{4}\\d{4}[A-Z0-9]{18}$/',
'bban_regex' => '/^[A-Z]{4}\\d{4}[A-Z0-9]{18}$/',
'iban_length' => 30,
'bban_length' => 26,
'iban_electronic_format_example' => 'YE15CBYE0001018861234567891234',
'iban_print_format_example' => 'YE15 CBYE 0001 0188 6123 4567 8912 34',
'bank_identifier_position' => '1-4',
'bank_identifier_structure' => '4!a',
'bank_identifier_regex' => '/^[A-Z]{4}$/',
'branch_identifier_position' => '5-8',
'branch_identifier_structure' => '4!n',
'branch_identifier_regex' => '/^\\d{4}$/',
],
];
Loading