Skip to content

Commit

Permalink
Merge pull request #64 from VincentLanglet/missingEuCountries
Browse files Browse the repository at this point in the history
Add missing EU countries
  • Loading branch information
dannyvankooten authored Nov 23, 2023
2 parents 905499c + 0dddc1c commit 2744069
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion src/Countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,41 @@ public function hasCountryCode(string $code): bool
*/
public function getCountryCodesInEU(): array
{
return ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK'];
return [
'AT', // Austria
'AX', // Aland islands => Finland
'BE', // Belgium
'BG', // Bulgaria
'CY', // Cyprus
'CZ', // Czechia
'DE', // Germany
'DK', // Denmark
'EE', // Estonia
'ES', // Spain
'FI', // Finland
'FR', // France
'GF', // French guiana => France
'GP', // Guadeloupe => France
'GR', // Greece
'HU', // Hungary
'HR', // Croatia
'IE', // Ireland
'IT', // Italy
'LT', // Lithuania
'LU', // Luxembourg
'LV', // Latvia
'MT', // Malta
'MQ', // Martinique => France
'NL', // Netherlands
'PL', // Poland
'PT', // Portugal
'RE', // Reunion => France
'RO', // Romania
'SE', // Sweden
'SI', // Slovenia
'SK', // Slovakia
'YT', // Mayotte => France
];
}

/**
Expand Down

0 comments on commit 2744069

Please sign in to comment.