Skip to content

Instantly share code, notes, and snippets.

@MammutAlex
Last active September 6, 2024 11:45

Revisions

  1. MammutAlex renamed this gist Sep 21, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PhoneCode.php → CallCode.php
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@

    use BenSampo\Enum\Enum;

    final class PhoneCode extends Enum
    final class CallCode extends Enum
    {
    const Afghanistan = 93;
    const Albania = 355;
  2. MammutAlex revised this gist Sep 21, 2019. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion PhoneCode.php
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@
    namespace App\Enums;

    use BenSampo\Enum\Enum;
    use BenSampo\Enum\Contracts\LocalizedEnum;

    final class PhoneCode extends Enum
    {
  3. MammutAlex revised this gist Sep 21, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion PhoneCode.php
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    <?php namespace App\Enums;
    <?php
    namespace App\Enums;

    use BenSampo\Enum\Enum;
    use BenSampo\Enum\Contracts\LocalizedEnum;
  4. MammutAlex created this gist Sep 21, 2019.
    248 changes: 248 additions & 0 deletions PhoneCode.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,248 @@
    <?php namespace App\Enums;

    use BenSampo\Enum\Enum;
    use BenSampo\Enum\Contracts\LocalizedEnum;

    final class PhoneCode extends Enum
    {
    const Afghanistan = 93;
    const Albania = 355;
    const Algeria = 213;
    const AmericanSamoa = 1684;
    const Andorra = 376;
    const Angola = 244;
    const Anguilla = 1264;
    const Antarctica = 672;
    const AntiguaAndBarbuda = 1268;
    const Argentina = 54;
    const Armenia = 374;
    const Aruba = 297;
    const Australia = 61;
    const Austria = 43;
    const Azerbaijan = 994;
    const Bahamas = 1242;
    const Bahrain = 973;
    const Bangladesh = 880;
    const Barbados = 1246;
    const Belarus = 375;
    const Belgium = 32;
    const Belize = 501;
    const Benin = 229;
    const Bermuda = 1441;
    const Bhutan = 975;
    const Bolivia = 591;
    const BosniaAndHerzegovina = 387;
    const Botswana = 267;
    const Brazil = 55;
    const BritishIndianOceanTerritory = 246;
    const BritishVirginIslands = 1284;
    const Brunei = 673;
    const Bulgaria = 359;
    const BurkinaFaso = 226;
    const Burundi = 257;
    const Cambodia = 855;
    const Cameroon = 237;
    const Canada = 1;
    const CapeVerde = 238;
    const CaymanIslands = 1345;
    const CentralAfricanRepublic = 236;
    const Chad = 235;
    const Chile = 56;
    const China = 86;
    const ChristmasIsland = 61;
    const CocosIslands = 61;
    const Colombia = 57;
    const Comoros = 269;
    const CookIslands = 682;
    const CostaRica = 506;
    const Croatia = 385;
    const Cuba = 53;
    const Curacao = 599;
    const Cyprus = 357;
    const CzechRepublic = 420;
    const DemocraticRepublicOfTheCongo = 243;
    const Denmark = 45;
    const Djibouti = 253;
    const Dominica = 1767;
    const DominicanRepublic = 1809;
    const EastTimor = 670;
    const Ecuador = 593;
    const Egypt = 20;
    const ElSalvador = 503;
    const EquatorialGuinea = 240;
    const Eritrea = 291;
    const Estonia = 372;
    const Ethiopia = 251;
    const FalklandIslands = 500;
    const FaroeIslands = 298;
    const Fiji = 679;
    const Finland = 358;
    const France = 33;
    const FrenchPolynesia = 689;
    const Gabon = 241;
    const Gambia = 220;
    const Georgia = 995;
    const Germany = 49;
    const Ghana = 233;
    const Gibraltar = 350;
    const Greece = 30;
    const Greenland = 299;
    const Grenada = 1473;
    const Guam = 1671;
    const Guatemala = 502;
    const Guernsey = 441481;
    const Guinea = 224;
    const GuineaBissau = 245;
    const Guyana = 592;
    const Haiti = 509;
    const Honduras = 504;
    const HongKong = 852;
    const Hungary = 36;
    const Iceland = 354;
    const India = 91;
    const Indonesia = 62;
    const Iran = 98;
    const Iraq = 964;
    const Ireland = 353;
    const IsleOfMan = 441624;
    const Israel = 972;
    const Italy = 39;
    const IvoryCoast = 225;
    const Jamaica = 1876;
    const Japan = 81;
    const Jersey = 441534;
    const Jordan = 962;
    const Kazakhstan = 7;
    const Kenya = 254;
    const Kiribati = 686;
    const Kosovo = 383;
    const Kuwait = 965;
    const Kyrgyzstan = 996;
    const Laos = 856;
    const Latvia = 371;
    const Lebanon = 961;
    const Lesotho = 266;
    const Liberia = 231;
    const Libya = 218;
    const Liechtenstein = 423;
    const Lithuania = 370;
    const Luxembourg = 352;
    const Macau = 853;
    const Macedonia = 389;
    const Madagascar = 261;
    const Malawi = 265;
    const Malaysia = 60;
    const Maldives = 960;
    const Mali = 223;
    const Malta = 356;
    const MarshallIslands = 692;
    const Mauritania = 222;
    const Mauritius = 230;
    const Mayotte = 262;
    const Mexico = 52;
    const Micronesia = 691;
    const Moldova = 373;
    const Monaco = 377;
    const Mongolia = 976;
    const Montenegro = 382;
    const Montserrat = 1664;
    const Morocco = 212;
    const Mozambique = 258;
    const Myanmar = 95;
    const Namibia = 264;
    const Nauru = 674;
    const Nepal = 977;
    const Netherlands = 31;
    const NetherlandsAntilles = 599;
    const NewCaledonia = 687;
    const NewZealand = 64;
    const Nicaragua = 505;
    const Niger = 227;
    const Nigeria = 234;
    const Niue = 683;
    const NorthKorea = 850;
    const NorthernMarianaIslands = 1670;
    const Norway = 47;
    const Oman = 968;
    const Pakistan = 92;
    const Palau = 680;
    const Palestine = 970;
    const Panama = 507;
    const PapuaNewGuinea = 675;
    const Paraguay = 595;
    const Peru = 51;
    const Philippines = 63;
    const Pitcairn = 64;
    const Poland = 48;
    const Portugal = 351;
    const PuertoRico = 1787;
    const Qatar = 974;
    const RepublicOfTheCongo = 242;
    const Reunion = 262;
    const Romania = 40;
    const Russia = 7;
    const Rwanda = 250;
    const SaintBarthelemy = 590;
    const SaintHelena = 290;
    const SaintKittsAndNevis = 1869;
    const SaintLucia = 1758;
    const SaintMartin = 590;
    const SaintPierreAndMiquelon = 508;
    const SaintVincentAndTheGrenadines = 1784;
    const Samoa = 685;
    const SanMarino = 378;
    const SaoTomeAndPrincipe = 239;
    const SaudiArabia = 966;
    const Senegal = 221;
    const Serbia = 381;
    const Seychelles = 248;
    const SierraLeone = 232;
    const Singapore = 65;
    const SintMaarten = 1721;
    const Slovakia = 421;
    const Slovenia = 386;
    const SolomonIslands = 677;
    const Somalia = 252;
    const SouthAfrica = 27;
    const SouthKorea = 82;
    const SouthSudan = 211;
    const Spain = 34;
    const SriLanka = 94;
    const Sudan = 249;
    const Suriname = 597;
    const SvalbardAndJanMayen = 47;
    const Swaziland = 268;
    const Sweden = 46;
    const Switzerland = 41;
    const Syria = 963;
    const Taiwan = 886;
    const Tajikistan = 992;
    const Tanzania = 255;
    const Thailand = 66;
    const Togo = 228;
    const Tokelau = 690;
    const Tonga = 676;
    const TrinidadAndTobago = 1868;
    const Tunisia = 216;
    const Turkey = 90;
    const Turkmenistan = 993;
    const TurksAndCaicosIslands = 1649;
    const Tuvalu = 688;
    const USVirginIslands = 1340;
    const Uganda = 256;
    const Ukraine = 380;
    const UnitedArabEmirates = 971;
    const UnitedKingdom = 44;
    const UnitedStates = 1;
    const Uruguay = 598;
    const Uzbekistan = 998;
    const Vanuatu = 678;
    const Vatican = 379;
    const Venezuela = 58;
    const Vietnam = 84;
    const WallisAndFutuna = 681;
    const WesternSahara = 212;
    const Yemen = 967;
    const Zambia = 260;
    const Zimbabwe = 263;
    }