| 1 | <?php |
||
| 18 | class SinchSupportedCountries |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * List of supported countries by Sinch. |
||
| 22 | * |
||
| 23 | * @var array $supportedCountries Countries |
||
| 24 | * @static |
||
| 25 | */ |
||
| 26 | public static $supportedCountries = [ |
||
| 27 | 'AF' => 'Afghanistan', |
||
| 28 | 'AM' => 'Armenia', |
||
| 29 | 'AR' => 'Argentina', |
||
| 30 | 'AT' => 'Austria', |
||
| 31 | 'AU' => 'Australia', |
||
| 32 | 'AZ' => 'Azerbaijan', |
||
| 33 | 'BA' => 'Bosnia & Herzegovina', |
||
| 34 | 'BD' => 'Bangladesh', |
||
| 35 | 'BE' => 'Belgium', |
||
| 36 | 'BG' => 'Bulgaria', |
||
| 37 | 'BH' => 'Bahrain', |
||
| 38 | 'BO' => 'Bolivia', |
||
| 39 | 'BR' => 'Brazil', |
||
| 40 | 'BS' => 'Bahamas', |
||
| 41 | 'BY' => 'Belarus', |
||
| 42 | 'CA' => 'Canada', |
||
| 43 | 'CD' => 'Congo - Kinshasa', |
||
| 44 | 'CF' => 'Central African Republic', |
||
| 45 | 'CG' => 'Congo - Brazzaville', |
||
| 46 | 'CH' => 'Switzerland', |
||
| 47 | 'CL' => 'Chile', |
||
| 48 | 'CN' => 'China', |
||
| 49 | 'CO' => 'Colombia', |
||
| 50 | 'CR' => 'Costa Rica', |
||
| 51 | 'CU' => 'Cuba', |
||
| 52 | 'CY' => 'Cyprus', |
||
| 53 | 'CZ' => 'Czech Republic', |
||
| 54 | 'DE' => 'Germany', |
||
| 55 | 'DK' => 'Denmark', |
||
| 56 | 'DZ' => 'Algeria', |
||
| 57 | 'EC' => 'Ecuador', |
||
| 58 | 'EG' => 'Egypt', |
||
| 59 | 'ES' => 'Spain', |
||
| 60 | 'FI' => 'Finland', |
||
| 61 | 'FR' => 'France', |
||
| 62 | 'GA' => 'Gabon', |
||
| 63 | 'GB' => 'United Kingdom', |
||
| 64 | 'GE' => 'Georgia', |
||
| 65 | 'GH' => 'Ghana', |
||
| 66 | 'GM' => 'Gambia', |
||
| 67 | 'GR' => 'Greece', |
||
| 68 | 'HK' => 'Hong Kong SAR China', |
||
| 69 | 'HR' => 'Croatia', |
||
| 70 | 'HU' => 'Hungary', |
||
| 71 | 'ID' => 'Indonesia', |
||
| 72 | 'IE' => 'Ireland', |
||
| 73 | 'IL' => 'Israel', |
||
| 74 | 'IN' => 'India', |
||
| 75 | 'IR' => 'Iran', |
||
| 76 | 'IT' => 'Italy', |
||
| 77 | 'JM' => 'Jamaica', |
||
| 78 | 'JP' => 'Japan', |
||
| 79 | 'KE' => 'Kenya', |
||
| 80 | 'KG' => 'Kyrgyzstan', |
||
| 81 | 'KH' => 'Cambodia', |
||
| 82 | 'KR' => 'South Korea', |
||
| 83 | 'KW' => 'Kuwait', |
||
| 84 | 'KZ' => 'Kazakhstan', |
||
| 85 | 'LB' => 'Lebanon', |
||
| 86 | 'LR' => 'Liberia', |
||
| 87 | 'LT' => 'Lithuania', |
||
| 88 | 'LU' => 'Luxembourg', |
||
| 89 | 'LV' => 'Latvia', |
||
| 90 | 'LY' => 'Libya', |
||
| 91 | 'MA' => 'Morocco', |
||
| 92 | 'MC' => 'Monaco', |
||
| 93 | 'MD' => 'Moldova', |
||
| 94 | 'MK' => 'Macedonia', |
||
| 95 | 'MN' => 'Mongolia', |
||
| 96 | 'MX' => 'Mexico', |
||
| 97 | 'MY' => 'Malaysia', |
||
| 98 | 'NG' => 'Nigeria', |
||
| 99 | 'NL' => 'Netherlands', |
||
| 100 | 'NO' => 'Norway', |
||
| 101 | 'NZ' => 'New Zealand', |
||
| 102 | 'PA' => 'Panama', |
||
| 103 | 'PE' => 'Peru', |
||
| 104 | 'PH' => 'Philippines', |
||
| 105 | 'PK' => 'Pakistan', |
||
| 106 | 'PL' => 'Poland', |
||
| 107 | 'PR' => 'Puerto Rico', |
||
| 108 | 'PT' => 'Portugal', |
||
| 109 | 'PY' => 'Paraguay', |
||
| 110 | 'QA' => 'Qatar', |
||
| 111 | 'RO' => 'Romania', |
||
| 112 | 'RU' => 'Russia', |
||
| 113 | 'SA' => 'Saudi Arabia', |
||
| 114 | 'SD' => 'Sudan', |
||
| 115 | 'SE' => 'Sweden', |
||
| 116 | 'SG' => 'Singapore', |
||
| 117 | 'SI' => 'Slovenia', |
||
| 118 | 'SK' => 'Slovakia', |
||
| 119 | 'SN' => 'Senegal', |
||
| 120 | 'SY' => 'Syria', |
||
| 121 | 'TH' => 'Thailand', |
||
| 122 | 'TN' => 'Tunisia', |
||
| 123 | 'TR' => 'Turkey', |
||
| 124 | 'TW' => 'Taiwan', |
||
| 125 | 'UA' => 'Ukraine', |
||
| 126 | 'UG' => 'Uganda', |
||
| 127 | 'US' => 'United States', |
||
| 128 | 'UY' => 'Uruguay', |
||
| 129 | 'VE' => 'Venezuela', |
||
| 130 | 'VN' => 'Vietnam', |
||
| 131 | 'ZA' => 'South Africa', |
||
| 132 | ]; |
||
| 133 | |||
| 134 | /** |
||
| 135 | * Check if country is supported |
||
| 136 | * |
||
| 137 | * @param string $countryCode Country code |
||
| 138 | * |
||
| 139 | * @return bool |
||
| 140 | */ |
||
| 141 | public static function isCountrySupported($countryCode) |
||
| 145 | } |
||
| 146 |