Skip to content

Instantly share code, notes, and snippets.

@sirthxalot
Last active July 6, 2021 12:09
Show Gist options
  • Save sirthxalot/24507fb57964d1b7b660f08fdfebf9ce to your computer and use it in GitHub Desktop.
Save sirthxalot/24507fb57964d1b7b660f08fdfebf9ce to your computer and use it in GitHub Desktop.
Country List for Laravel's Enum
<?php namespace App\Enums;
use BenSampo\Enum\Enum;
use BenSampo\Enum\Contracts\LocalizedEnum;
final class Countries extends Enum
{
const AF = "Afghanistan";
const AL = "Albania";
const DZ = "Algeria";
const AS = "American Samoa";
const AD = "Andorra";
const AO = "Angola";
const AI = "Anguilla";
const AQ = "Antarctica";
const AG = "Antigua and Barbuda";
const AR = "Argentina";
const AM = "Armenia";
const AW = "Aruba";
const AU = "Australia";
const AT = "Austria";
const AZ = "Azerbaijan";
const BS = "Bahamas";
const BH = "Bahrain";
const BD = "Bangladesh";
const BB = "Barbados";
const BY = "Belarus";
const BE = "Belgium";
const BZ = "Belize";
const BJ = "Benin";
const BM = "Bermuda";
const BT = "Bhutan";
const BO = "Bolivia";
const BA = "Bosnia and Herzegovina";
const BW = "Botswana";
const BV = "Bouvet Island";
const BR = "Brazil";
const IO = "British Indian Ocean Territory";
const BN = "Brunei Darussalam";
const BG = "Bulgaria";
const BF = "Burkina Faso";
const BI = "Burundi";
const KH = "Cambodia";
const CM = "Cameroon";
const CA = "Canada";
const CV = "Cape Verde";
const KY = "Cayman Islands";
const CF = "Central African Republic";
const TD = "Chad";
const CL = "Chile";
const CN = "China";
const CX = "Christmas Island";
const CC = "Cocos (Keeling) Islands";
const CO = "Colombia";
const KM = "Comoros";
const CG = "Congo";
const CD = "Congo, the Democratic Republic of the";
const CK = "Cook Islands";
const CR = "Costa Rica";
const CI = "Cote D'Ivoire";
const HR = "Croatia";
const CU = "Cuba";
const CY = "Cyprus";
const CZ = "Czech Republic";
const DK = "Denmark";
const DJ = "Djibouti";
const DM = "Dominica";
const DO = "Dominican Republic";
const EC = "Ecuador";
const EG = "Egypt";
const SV = "El Salvador";
const GQ = "Equatorial Guinea";
const ER = "Eritrea";
const EE = "Estonia";
const ET = "Ethiopia";
const FK = "Falkland Islands (Malvinas)";
const FO = "Faroe Islands";
const FJ = "Fiji";
const FI = "Finland";
const FR = "France";
const GF = "French Guiana";
const PF = "French Polynesia";
const TF = "French Southern Territories";
const GA = "Gabon";
const GM = "Gambia";
const GE = "Georgia";
const DE = "Germany";
const GH = "Ghana";
const GI = "Gibraltar";
const GR = "Greece";
const GL = "Greenland";
const GD = "Grenada";
const GP = "Guadeloupe";
const GU = "Guam";
const GT = "Guatemala";
const GN = "Guinea";
const GW = "Guinea-Bissau";
const GY = "Guyana";
const HT = "Haiti";
const HM = "Heard Island and Mcdonald Islands";
const VA = "Holy See (Vatican City State)";
const HN = "Honduras";
const HK = "Hong Kong";
const HU = "Hungary";
const IS = "Iceland";
const IN = "India";
const ID = "Indonesia";
const IR = "Iran, Islamic Republic of";
const IQ = "Iraq";
const IE = "Ireland";
const IL = "Israel";
const IT = "Italy";
const JM = "Jamaica";
const JP = "Japan";
const JO = "Jordan";
const KZ = "Kazakhstan";
const KE = "Kenya";
const KI = "Kiribati";
const KP = "Korea, Democratic People's Republic of";
const KR = "Korea, Republic of";
const KW = "Kuwait";
const KG = "Kyrgyzstan";
const LA = "Lao People's Democratic Republic";
const LV = "Latvia";
const LB = "Lebanon";
const LS = "Lesotho";
const LR = "Liberia";
const LY = "Libyan Arab Jamahiriya";
const LI = "Liechtenstein";
const LT = "Lithuania";
const LU = "Luxembourg";
const MO = "Macao";
const MK = "Macedonia, the Former Yugoslav Republic of";
const MG = "Madagascar";
const MW = "Malawi";
const MY = "Malaysia";
const MV = "Maldives";
const ML = "Mali";
const MT = "Malta";
const MH = "Marshall Islands";
const MQ = "Martinique";
const MR = "Mauritania";
const MU = "Mauritius";
const YT = "Mayotte";
const MX = "Mexico";
const FM = "Micronesia, Federated States of";
const MD = "Moldova, Republic of";
const MC = "Monaco";
const MN = "Mongolia";
const MS = "Montserrat";
const MA = "Morocco";
const MZ = "Mozambique";
const MM = "Myanmar";
const NA = "Namibia";
const NR = "Nauru";
const NP = "Nepal";
const NL = "Netherlands";
const AN = "Netherlands Antilles";
const NC = "New Caledonia";
const NZ = "New Zealand";
const NI = "Nicaragua";
const NE = "Niger";
const NG = "Nigeria";
const NU = "Niue";
const NF = "Norfolk Island";
const MP = "Northern Mariana Islands";
const NO = "Norway";
const OM = "Oman";
const PK = "Pakistan";
const PW = "Palau";
const PS = "Palestinian Territory, Occupied";
const PA = "Panama";
const PG = "Papua New Guinea";
const PY = "Paraguay";
const PE = "Peru";
const PH = "Philippines";
const PN = "Pitcairn";
const PL = "Poland";
const PT = "Portugal";
const PR = "Puerto Rico";
const QA = "Qatar";
const RE = "Reunion";
const RO = "Romania";
const RU = "Russian Federation";
const RW = "Rwanda";
const SH = "Saint Helena";
const KN = "Saint Kitts and Nevis";
const LC = "Saint Lucia";
const PM = "Saint Pierre and Miquelon";
const VC = "Saint Vincent and the Grenadines";
const WS = "Samoa";
const SM = "San Marino";
const ST = "Sao Tome and Principe";
const SA = "Saudi Arabia";
const SN = "Senegal";
const CS = "Serbia and Montenegro";
const SC = "Seychelles";
const SL = "Sierra Leone";
const SG = "Singapore";
const SK = "Slovakia";
const SI = "Slovenia";
const SB = "Solomon Islands";
const SO = "Somalia";
const ZA = "South Africa";
const GS = "South Georgia and the South Sandwich Islands";
const ES = "Spain";
const LK = "Sri Lanka";
const SD = "Sudan";
const SR = "Suriname";
const SJ = "Svalbard and Jan Mayen";
const SZ = "Swaziland";
const SE = "Sweden";
const CH = "Switzerland";
const SY = "Syrian Arab Republic";
const TW = "Taiwan, Province of China";
const TJ = "Tajikistan";
const TZ = "Tanzania, United Republic of";
const TH = "Thailand";
const TL = "Timor-Leste";
const TG = "Togo";
const TK = "Tokelau";
const TO = "Tonga";
const TT = "Trinidad and Tobago";
const TN = "Tunisia";
const TR = "Turkey";
const TM = "Turkmenistan";
const TC = "Turks and Caicos Islands";
const TV = "Tuvalu";
const UG = "Uganda";
const UA = "Ukraine";
const AE = "United Arab Emirates";
const GB = "United Kingdom";
const US = "United States";
const UM = "United States Minor Outlying Islands";
const UY = "Uruguay";
const UZ = "Uzbekistan";
const VU = "Vanuatu";
const VE = "Venezuela";
const VN = "Viet Nam";
const VG = "Virgin Islands, British";
const VI = "Virgin Islands, U.s.";
const WF = "Wallis and Futuna";
const EH = "Western Sahara";
const YE = "Yemen";
const ZM = "Zambia";
const ZW = "Zimbabwe";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment