enum country, sans charger tout un package qui n'est pas utile à ce stade
This commit is contained in:
parent
662a48c45e
commit
0b8a3ea3f0
4 changed files with 787 additions and 187 deletions
784
app/Enums/Country.php
Normal file
784
app/Enums/Country.php
Normal file
|
|
@ -0,0 +1,784 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use Kwaadpepper\Enum\BaseEnum;
|
||||
|
||||
/**
|
||||
* Liste de Pays
|
||||
* @source https://datahub.io/core/country-list Data Hub country list
|
||||
* @method static self afghanistan()
|
||||
* @method static self alandIslands()
|
||||
* @method static self albania()
|
||||
* @method static self algeria()
|
||||
* @method static self americanSamoa()
|
||||
* @method static self andorra()
|
||||
* @method static self angola()
|
||||
* @method static self anguilla()
|
||||
* @method static self antarctica()
|
||||
* @method static self antiguaAndBarbuda()
|
||||
* @method static self argentina()
|
||||
* @method static self armenia()
|
||||
* @method static self aruba()
|
||||
* @method static self australia()
|
||||
* @method static self austria()
|
||||
* @method static self azerbaijan()
|
||||
* @method static self bahrain()
|
||||
* @method static self bahamas()
|
||||
* @method static self bangladesh()
|
||||
* @method static self barbados()
|
||||
* @method static self belarus()
|
||||
* @method static self belgium()
|
||||
* @method static self belize()
|
||||
* @method static self benin()
|
||||
* @method static self bermuda()
|
||||
* @method static self bhutan()
|
||||
* @method static self boliviaPlurinationalStateOf()
|
||||
* @method static self bonaireSintEustatiusAndSaba()
|
||||
* @method static self bosniaAndHerzegovina()
|
||||
* @method static self botswana()
|
||||
* @method static self bouvetIsland()
|
||||
* @method static self brazil()
|
||||
* @method static self britishIndianOceanTerritory()
|
||||
* @method static self bruneiDarussalam()
|
||||
* @method static self bulgaria()
|
||||
* @method static self burkinaFaso()
|
||||
* @method static self burundi()
|
||||
* @method static self cambodia()
|
||||
* @method static self cameroon()
|
||||
* @method static self canada()
|
||||
* @method static self capeVerde()
|
||||
* @method static self caymanIslands()
|
||||
* @method static self centralAfricanRepublic()
|
||||
* @method static self chad()
|
||||
* @method static self chile()
|
||||
* @method static self china()
|
||||
* @method static self christmasIsland()
|
||||
* @method static self cocosKeelingIslands()
|
||||
* @method static self colombia()
|
||||
* @method static self comoros()
|
||||
* @method static self congo()
|
||||
* @method static self congoTheDemocraticRepublicOfThe()
|
||||
* @method static self cookIslands()
|
||||
* @method static self costaRica()
|
||||
* @method static self coteDivoire()
|
||||
* @method static self croatia()
|
||||
* @method static self cuba()
|
||||
* @method static self curacao()
|
||||
* @method static self cyprus()
|
||||
* @method static self czechRepublic()
|
||||
* @method static self denmark()
|
||||
* @method static self djibouti()
|
||||
* @method static self dominica()
|
||||
* @method static self dominicanRepublic()
|
||||
* @method static self ecuador()
|
||||
* @method static self egypt()
|
||||
* @method static self elSalvador()
|
||||
* @method static self equatorialGuinea()
|
||||
* @method static self eritrea()
|
||||
* @method static self estonia()
|
||||
* @method static self ethiopia()
|
||||
* @method static self falklandIslandsMalvinas()
|
||||
* @method static self faroeIslands()
|
||||
* @method static self fiji()
|
||||
* @method static self finland()
|
||||
* @method static self france()
|
||||
* @method static self frenchGuiana()
|
||||
* @method static self frenchPolynesia()
|
||||
* @method static self frenchSouthernTerritories()
|
||||
* @method static self gabon()
|
||||
* @method static self gambia()
|
||||
* @method static self georgia()
|
||||
* @method static self germany()
|
||||
* @method static self ghana()
|
||||
* @method static self gibraltar()
|
||||
* @method static self greece()
|
||||
* @method static self greenland()
|
||||
* @method static self grenada()
|
||||
* @method static self guadeloupe()
|
||||
* @method static self guam()
|
||||
* @method static self guatemala()
|
||||
* @method static self guernsey()
|
||||
* @method static self guinea()
|
||||
* @method static self guineaBissau()
|
||||
* @method static self guyana()
|
||||
* @method static self haiti()
|
||||
* @method static self heardIslandAndMcdonaldIslands()
|
||||
* @method static self holySeeVaticanCityState()
|
||||
* @method static self honduras()
|
||||
* @method static self hongKong()
|
||||
* @method static self hungary()
|
||||
* @method static self iceland()
|
||||
* @method static self india()
|
||||
* @method static self indonesia()
|
||||
* @method static self iranIslamicRepublicOf()
|
||||
* @method static self iraq()
|
||||
* @method static self ireland()
|
||||
* @method static self isleOfMan()
|
||||
* @method static self israel()
|
||||
* @method static self italy()
|
||||
* @method static self jamaica()
|
||||
* @method static self japan()
|
||||
* @method static self jersey()
|
||||
* @method static self jordan()
|
||||
* @method static self kazakhstan()
|
||||
* @method static self kenya()
|
||||
* @method static self kiribati()
|
||||
* @method static self koreaDemocraticPeoplesRepublicOf()
|
||||
* @method static self koreaRepublicOf()
|
||||
* @method static self kuwait()
|
||||
* @method static self kyrgyzstan()
|
||||
* @method static self laoPeoplesDemocraticRepublic()
|
||||
* @method static self latvia()
|
||||
* @method static self lebanon()
|
||||
* @method static self lesotho()
|
||||
* @method static self liberia()
|
||||
* @method static self libya()
|
||||
* @method static self liechtenstein()
|
||||
* @method static self lithuania()
|
||||
* @method static self luxembourg()
|
||||
* @method static self macao()
|
||||
* @method static self macedoniaTheFormerYugoslavRepublicOf()
|
||||
* @method static self madagascar()
|
||||
* @method static self malawi()
|
||||
* @method static self malaysia()
|
||||
* @method static self maldives()
|
||||
* @method static self mali()
|
||||
* @method static self malta()
|
||||
* @method static self marshallIslands()
|
||||
* @method static self martinique()
|
||||
* @method static self mauritania()
|
||||
* @method static self mauritius()
|
||||
* @method static self mayotte()
|
||||
* @method static self mexico()
|
||||
* @method static self micronesiaFederatedStatesOf()
|
||||
* @method static self moldovaRepublicOf()
|
||||
* @method static self monaco()
|
||||
* @method static self mongolia()
|
||||
* @method static self montenegro()
|
||||
* @method static self montserrat()
|
||||
* @method static self morocco()
|
||||
* @method static self mozambique()
|
||||
* @method static self myanmar()
|
||||
* @method static self namibia()
|
||||
* @method static self nauru()
|
||||
* @method static self nepal()
|
||||
* @method static self netherlands()
|
||||
* @method static self newCaledonia()
|
||||
* @method static self newZealand()
|
||||
* @method static self nicaragua()
|
||||
* @method static self niger()
|
||||
* @method static self nigeria()
|
||||
* @method static self niue()
|
||||
* @method static self norfolkIsland()
|
||||
* @method static self northernMarianaIslands()
|
||||
* @method static self norway()
|
||||
* @method static self oman()
|
||||
* @method static self pakistan()
|
||||
* @method static self palau()
|
||||
* @method static self palestineStateOf()
|
||||
* @method static self panama()
|
||||
* @method static self papuaNewGuinea()
|
||||
* @method static self paraguay()
|
||||
* @method static self peru()
|
||||
* @method static self philippines()
|
||||
* @method static self pitcairn()
|
||||
* @method static self poland()
|
||||
* @method static self portugal()
|
||||
* @method static self puertoRico()
|
||||
* @method static self qatar()
|
||||
* @method static self reunion()
|
||||
* @method static self romania()
|
||||
* @method static self russianFederation()
|
||||
* @method static self rwanda()
|
||||
* @method static self saintBarthelemy()
|
||||
* @method static self saintHelenaAscensionAndTristanDaCunha()
|
||||
* @method static self saintKittsAndNevis()
|
||||
* @method static self saintLucia()
|
||||
* @method static self saintMartinFrenchPart()
|
||||
* @method static self saintPierreAndMiquelon()
|
||||
* @method static self saintVincentAndTheGrenadines()
|
||||
* @method static self samoa()
|
||||
* @method static self sanMarino()
|
||||
* @method static self saoTomeAndPrincipe()
|
||||
* @method static self saudiArabia()
|
||||
* @method static self senegal()
|
||||
* @method static self serbia()
|
||||
* @method static self seychelles()
|
||||
* @method static self sierraLeone()
|
||||
* @method static self singapore()
|
||||
* @method static self sintMaartenDutchPart()
|
||||
* @method static self slovakia()
|
||||
* @method static self slovenia()
|
||||
* @method static self solomonIslands()
|
||||
* @method static self somalia()
|
||||
* @method static self southAfrica()
|
||||
* @method static self southGeorgiaAndTheSouthSandwichIslands()
|
||||
* @method static self southSudan()
|
||||
* @method static self spain()
|
||||
* @method static self sriLanka()
|
||||
* @method static self sudan()
|
||||
* @method static self suriname()
|
||||
* @method static self svalbardAndJanMayen()
|
||||
* @method static self swaziland()
|
||||
* @method static self sweden()
|
||||
* @method static self switzerland()
|
||||
* @method static self syrianArabRepublic()
|
||||
* @method static self taiwanProvinceOfChina()
|
||||
* @method static self tajikistan()
|
||||
* @method static self tanzaniaUnitedRepublicOf()
|
||||
* @method static self thailand()
|
||||
* @method static self timorLeste()
|
||||
* @method static self togo()
|
||||
* @method static self tokelau()
|
||||
* @method static self tonga()
|
||||
* @method static self trinidadAndTobago()
|
||||
* @method static self tunisia()
|
||||
* @method static self turkey()
|
||||
* @method static self turkmenistan()
|
||||
* @method static self turksAndCaicosIslands()
|
||||
* @method static self tuvalu()
|
||||
* @method static self uganda()
|
||||
* @method static self ukraine()
|
||||
* @method static self unitedArabEmirates()
|
||||
* @method static self unitedKingdom()
|
||||
* @method static self unitedStates()
|
||||
* @method static self unitedStatesMinorOutlyingIslands()
|
||||
* @method static self uruguay()
|
||||
* @method static self uzbekistan()
|
||||
* @method static self vanuatu()
|
||||
* @method static self venezuelaBolivarianRepublicOf()
|
||||
* @method static self vietNam()
|
||||
* @method static self virginIslandsBritish()
|
||||
* @method static self virginIslandsUs()
|
||||
* @method static self wallisAndFutuna()
|
||||
* @method static self westernSahara()
|
||||
* @method static self yemen()
|
||||
* @method static self zambia()
|
||||
* @method static self zimbabwe()
|
||||
*
|
||||
* @package LDCCrmClient
|
||||
* @subpackage enums
|
||||
*/
|
||||
class Country extends BaseEnum
|
||||
{
|
||||
/**
|
||||
* Valeurs des possibilités de cet énumération (value)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function values(): array
|
||||
{
|
||||
return [
|
||||
'afghanistan' => 1,
|
||||
'alandIslands' => 2,
|
||||
'albania' => 3,
|
||||
'algeria' => 4,
|
||||
'americanSamoa' => 5,
|
||||
'andorra' => 6,
|
||||
'angola' => 7,
|
||||
'anguilla' => 8,
|
||||
'antarctica' => 9,
|
||||
'antiguaAndBarbuda' => 10,
|
||||
'argentina' => 11,
|
||||
'armenia' => 12,
|
||||
'aruba' => 13,
|
||||
'australia' => 14,
|
||||
'austria' => 15,
|
||||
'azerbaijan' => 16,
|
||||
'bahrain' => 17,
|
||||
'bahamas' => 18,
|
||||
'bangladesh' => 19,
|
||||
'barbados' => 20,
|
||||
'belarus' => 21,
|
||||
'belgium' => 22,
|
||||
'belize' => 23,
|
||||
'benin' => 24,
|
||||
'bermuda' => 25,
|
||||
'bhutan' => 26,
|
||||
'boliviaPlurinationalStateOf' => 27,
|
||||
'bonaireSintEustatiusAndSaba' => 28,
|
||||
'bosniaAndHerzegovina' => 29,
|
||||
'botswana' => 30,
|
||||
'bouvetIsland' => 31,
|
||||
'brazil' => 32,
|
||||
'britishIndianOceanTerritory' => 33,
|
||||
'bruneiDarussalam' => 34,
|
||||
'bulgaria' => 35,
|
||||
'burkinaFaso' => 36,
|
||||
'burundi' => 37,
|
||||
'cambodia' => 38,
|
||||
'cameroon' => 39,
|
||||
'canada' => 40,
|
||||
'capeVerde' => 41,
|
||||
'caymanIslands' => 42,
|
||||
'centralAfricanRepublic' => 43,
|
||||
'chad' => 44,
|
||||
'chile' => 45,
|
||||
'china' => 46,
|
||||
'christmasIsland' => 47,
|
||||
'cocosKeelingIslands' => 48,
|
||||
'colombia' => 49,
|
||||
'comoros' => 50,
|
||||
'congo' => 51,
|
||||
'congoTheDemocraticRepublicOfThe' => 52,
|
||||
'cookIslands' => 53,
|
||||
'costaRica' => 54,
|
||||
'coteDivoire' => 55,
|
||||
'croatia' => 56,
|
||||
'cuba' => 57,
|
||||
'curacao' => 58,
|
||||
'cyprus' => 59,
|
||||
'czechRepublic' => 60,
|
||||
'denmark' => 61,
|
||||
'djibouti' => 62,
|
||||
'dominica' => 63,
|
||||
'dominicanRepublic' => 64,
|
||||
'ecuador' => 65,
|
||||
'egypt' => 66,
|
||||
'elSalvador' => 67,
|
||||
'equatorialGuinea' => 68,
|
||||
'eritrea' => 69,
|
||||
'estonia' => 70,
|
||||
'ethiopia' => 71,
|
||||
'falklandIslandsMalvinas' => 72,
|
||||
'faroeIslands' => 73,
|
||||
'fiji' => 74,
|
||||
'finland' => 75,
|
||||
'france' => 76,
|
||||
'frenchGuiana' => 77,
|
||||
'frenchPolynesia' => 78,
|
||||
'frenchSouthernTerritories' => 79,
|
||||
'gabon' => 80,
|
||||
'gambia' => 81,
|
||||
'georgia' => 82,
|
||||
'germany' => 83,
|
||||
'ghana' => 84,
|
||||
'gibraltar' => 85,
|
||||
'greece' => 86,
|
||||
'greenland' => 87,
|
||||
'grenada' => 88,
|
||||
'guadeloupe' => 89,
|
||||
'guam' => 90,
|
||||
'guatemala' => 91,
|
||||
'guernsey' => 92,
|
||||
'guinea' => 93,
|
||||
'guineaBissau' => 94,
|
||||
'guyana' => 95,
|
||||
'haiti' => 96,
|
||||
'heardIslandAndMcdonaldIslands' => 97,
|
||||
'holySeeVaticanCityState' => 98,
|
||||
'honduras' => 99,
|
||||
'hongKong' => 100,
|
||||
'hungary' => 101,
|
||||
'iceland' => 102,
|
||||
'india' => 103,
|
||||
'indonesia' => 104,
|
||||
'iranIslamicRepublicOf' => 105,
|
||||
'iraq' => 106,
|
||||
'ireland' => 107,
|
||||
'isleOfMan' => 108,
|
||||
'israel' => 109,
|
||||
'italy' => 110,
|
||||
'jamaica' => 111,
|
||||
'japan' => 112,
|
||||
'jersey' => 113,
|
||||
'jordan' => 114,
|
||||
'kazakhstan' => 115,
|
||||
'kenya' => 116,
|
||||
'kiribati' => 117,
|
||||
'koreaDemocraticPeoplesRepublicOf' => 118,
|
||||
'koreaRepublicOf' => 119,
|
||||
'kuwait' => 120,
|
||||
'kyrgyzstan' => 121,
|
||||
'laoPeoplesDemocraticRepublic' => 122,
|
||||
'latvia' => 123,
|
||||
'lebanon' => 124,
|
||||
'lesotho' => 125,
|
||||
'liberia' => 126,
|
||||
'libya' => 127,
|
||||
'liechtenstein' => 128,
|
||||
'lithuania' => 129,
|
||||
'luxembourg' => 130,
|
||||
'macao' => 131,
|
||||
'macedoniaTheFormerYugoslavRepublicOf' => 132,
|
||||
'madagascar' => 133,
|
||||
'malawi' => 134,
|
||||
'malaysia' => 135,
|
||||
'maldives' => 136,
|
||||
'mali' => 137,
|
||||
'malta' => 138,
|
||||
'marshallIslands' => 139,
|
||||
'martinique' => 140,
|
||||
'mauritania' => 141,
|
||||
'mauritius' => 142,
|
||||
'mayotte' => 143,
|
||||
'mexico' => 144,
|
||||
'micronesiaFederatedStatesOf' => 145,
|
||||
'moldovaRepublicOf' => 146,
|
||||
'monaco' => 147,
|
||||
'mongolia' => 148,
|
||||
'montenegro' => 149,
|
||||
'montserrat' => 150,
|
||||
'morocco' => 151,
|
||||
'mozambique' => 152,
|
||||
'myanmar' => 153,
|
||||
'namibia' => 154,
|
||||
'nauru' => 155,
|
||||
'nepal' => 156,
|
||||
'netherlands' => 157,
|
||||
'newCaledonia' => 158,
|
||||
'newZealand' => 159,
|
||||
'nicaragua' => 160,
|
||||
'niger' => 161,
|
||||
'nigeria' => 162,
|
||||
'niue' => 163,
|
||||
'norfolkIsland' => 164,
|
||||
'northernMarianaIslands' => 165,
|
||||
'norway' => 166,
|
||||
'oman' => 167,
|
||||
'pakistan' => 168,
|
||||
'palau' => 169,
|
||||
'palestineStateOf' => 170,
|
||||
'panama' => 171,
|
||||
'papuaNewGuinea' => 172,
|
||||
'paraguay' => 173,
|
||||
'peru' => 174,
|
||||
'philippines' => 175,
|
||||
'pitcairn' => 176,
|
||||
'poland' => 177,
|
||||
'portugal' => 178,
|
||||
'puertoRico' => 179,
|
||||
'qatar' => 180,
|
||||
'reunion' => 181,
|
||||
'romania' => 182,
|
||||
'russianFederation' => 183,
|
||||
'rwanda' => 184,
|
||||
'saintBarthelemy' => 185,
|
||||
'saintHelenaAscensionAndTristanDaCunha' => 186,
|
||||
'saintKittsAndNevis' => 187,
|
||||
'saintLucia' => 188,
|
||||
'saintMartinFrenchPart' => 189,
|
||||
'saintPierreAndMiquelon' => 190,
|
||||
'saintVincentAndTheGrenadines' => 191,
|
||||
'samoa' => 192,
|
||||
'sanMarino' => 193,
|
||||
'saoTomeAndPrincipe' => 194,
|
||||
'saudiArabia' => 195,
|
||||
'senegal' => 196,
|
||||
'serbia' => 197,
|
||||
'seychelles' => 198,
|
||||
'sierraLeone' => 199,
|
||||
'singapore' => 200,
|
||||
'sintMaartenDutchPart' => 201,
|
||||
'slovakia' => 202,
|
||||
'slovenia' => 203,
|
||||
'solomonIslands' => 204,
|
||||
'somalia' => 205,
|
||||
'southAfrica' => 206,
|
||||
'southGeorgiaAndTheSouthSandwichIslands' => 207,
|
||||
'southSudan' => 208,
|
||||
'spain' => 209,
|
||||
'sriLanka' => 210,
|
||||
'sudan' => 211,
|
||||
'suriname' => 212,
|
||||
'svalbardAndJanMayen' => 213,
|
||||
'swaziland' => 214,
|
||||
'sweden' => 215,
|
||||
'switzerland' => 216,
|
||||
'syrianArabRepublic' => 217,
|
||||
'taiwanProvinceOfChina' => 218,
|
||||
'tajikistan' => 219,
|
||||
'tanzaniaUnitedRepublicOf' => 220,
|
||||
'thailand' => 221,
|
||||
'timorLeste' => 222,
|
||||
'togo' => 223,
|
||||
'tokelau' => 224,
|
||||
'tonga' => 225,
|
||||
'trinidadAndTobago' => 226,
|
||||
'tunisia' => 227,
|
||||
'turkey' => 228,
|
||||
'turkmenistan' => 229,
|
||||
'turksAndCaicosIslands' => 230,
|
||||
'tuvalu' => 231,
|
||||
'uganda' => 232,
|
||||
'ukraine' => 233,
|
||||
'unitedArabEmirates' => 234,
|
||||
'unitedKingdom' => 235,
|
||||
'unitedStates' => 236,
|
||||
'unitedStatesMinorOutlyingIslands' => 237,
|
||||
'uruguay' => 238,
|
||||
'uzbekistan' => 239,
|
||||
'vanuatu' => 240,
|
||||
'venezuelaBolivarianRepublicOf' => 241,
|
||||
'vietNam' => 242,
|
||||
'virginIslandsBritish' => 243,
|
||||
'virginIslandsUs' => 244,
|
||||
'wallisAndFutuna' => 245,
|
||||
'westernSahara' => 246,
|
||||
'yemen' => 247,
|
||||
'zambia' => 248,
|
||||
'zimbabwe' => 249
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Libellés des possibilités de cet énumération (label)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function labels(): array
|
||||
{
|
||||
return [
|
||||
'afghanistan' => 'Afghanistan',
|
||||
'alandIslands' => 'Åland Islands',
|
||||
'albania' => 'Albania',
|
||||
'algeria' => 'Algeria',
|
||||
'americanSamoa' => 'American Samoa',
|
||||
'andorra' => 'Andorra',
|
||||
'angola' => 'Angola',
|
||||
'anguilla' => 'Anguilla',
|
||||
'antarctica' => 'Antarctica',
|
||||
'antiguaAndBarbuda' => 'Antigua and Barbuda',
|
||||
'argentina' => 'Argentina',
|
||||
'armenia' => 'Armenia',
|
||||
'aruba' => 'Aruba',
|
||||
'australia' => 'Australia',
|
||||
'austria' => 'Austria',
|
||||
'azerbaijan' => 'Azerbaijan',
|
||||
'bahrain' => 'Bahrain',
|
||||
'bahamas' => 'Bahamas',
|
||||
'bangladesh' => 'Bangladesh',
|
||||
'barbados' => 'Barbados',
|
||||
'belarus' => 'Belarus',
|
||||
'belgium' => 'Belgium',
|
||||
'belize' => 'Belize',
|
||||
'benin' => 'Benin',
|
||||
'bermuda' => 'Bermuda',
|
||||
'bhutan' => 'Bhutan',
|
||||
'boliviaPlurinationalStateOf' => 'Bolivia, Plurinational State of',
|
||||
'bonaireSintEustatiusAndSaba' => 'Bonaire, Sint Eustatius and Saba',
|
||||
'bosniaAndHerzegovina' => 'Bosnia and Herzegovina',
|
||||
'botswana' => 'Botswana',
|
||||
'bouvetIsland' => 'Bouvet Island',
|
||||
'brazil' => 'Brazil',
|
||||
'britishIndianOceanTerritory' => 'British Indian Ocean Territory',
|
||||
'bruneiDarussalam' => 'Brunei Darussalam',
|
||||
'bulgaria' => 'Bulgaria',
|
||||
'burkinaFaso' => 'Burkina Faso',
|
||||
'burundi' => 'Burundi',
|
||||
'cambodia' => 'Cambodia',
|
||||
'cameroon' => 'Cameroon',
|
||||
'canada' => 'Canada',
|
||||
'capeVerde' => 'Cape Verde',
|
||||
'caymanIslands' => 'Cayman Islands',
|
||||
'centralAfricanRepublic' => 'Central African Republic',
|
||||
'chad' => 'Chad',
|
||||
'chile' => 'Chile',
|
||||
'china' => 'China',
|
||||
'christmasIsland' => 'Christmas Island',
|
||||
'cocosKeelingIslands' => 'Cocos (Keeling) Islands',
|
||||
'colombia' => 'Colombia',
|
||||
'comoros' => 'Comoros',
|
||||
'congo' => 'Congo',
|
||||
'congoTheDemocraticRepublicOfThe' => 'Congo, the Democratic Republic of the',
|
||||
'cookIslands' => 'Cook Islands',
|
||||
'costaRica' => 'Costa Rica',
|
||||
'coteDivoire' => 'Côte d\'Ivoire',
|
||||
'croatia' => 'Croatia',
|
||||
'cuba' => 'Cuba',
|
||||
'curacao' => 'Curaçao',
|
||||
'cyprus' => 'Cyprus',
|
||||
'czechRepublic' => 'Czech Republic',
|
||||
'denmark' => 'Denmark',
|
||||
'djibouti' => 'Djibouti',
|
||||
'dominica' => 'Dominica',
|
||||
'dominicanRepublic' => 'Dominican Republic',
|
||||
'ecuador' => 'Ecuador',
|
||||
'egypt' => 'Egypt',
|
||||
'elSalvador' => 'El Salvador',
|
||||
'equatorialGuinea' => 'Equatorial Guinea',
|
||||
'eritrea' => 'Eritrea',
|
||||
'estonia' => 'Estonia',
|
||||
'ethiopia' => 'Ethiopia',
|
||||
'falklandIslandsMalvinas' => 'Falkland Islands (Malvinas)',
|
||||
'faroeIslands' => 'Faroe Islands',
|
||||
'fiji' => 'Fiji',
|
||||
'finland' => 'Finland',
|
||||
'france' => 'France',
|
||||
'frenchGuiana' => 'French Guiana',
|
||||
'frenchPolynesia' => 'French Polynesia',
|
||||
'frenchSouthernTerritories' => 'French Southern Territories',
|
||||
'gabon' => 'Gabon',
|
||||
'gambia' => 'Gambia',
|
||||
'georgia' => 'Georgia',
|
||||
'germany' => 'Germany',
|
||||
'ghana' => 'Ghana',
|
||||
'gibraltar' => 'Gibraltar',
|
||||
'greece' => 'Greece',
|
||||
'greenland' => 'Greenland',
|
||||
'grenada' => 'Grenada',
|
||||
'guadeloupe' => 'Guadeloupe',
|
||||
'guam' => 'Guam',
|
||||
'guatemala' => 'Guatemala',
|
||||
'guernsey' => 'Guernsey',
|
||||
'guinea' => 'Guinea',
|
||||
'guineaBissau' => 'GuineaBissau',
|
||||
'guyana' => 'Guyana',
|
||||
'haiti' => 'Haiti',
|
||||
'heardIslandAndMcdonaldIslands' => 'Heard Island and McDonald Islands',
|
||||
'holySeeVaticanCityState' => 'Holy See (Vatican City State)',
|
||||
'honduras' => 'Honduras',
|
||||
'hongKong' => 'Hong Kong',
|
||||
'hungary' => 'Hungary',
|
||||
'iceland' => 'Iceland',
|
||||
'india' => 'India',
|
||||
'indonesia' => 'Indonesia',
|
||||
'iranIslamicRepublicOf' => 'Iran, Islamic Republic of',
|
||||
'iraq' => 'Iraq',
|
||||
'ireland' => 'Ireland',
|
||||
'isleOfMan' => 'Isle of Man',
|
||||
'israel' => 'Israel',
|
||||
'italy' => 'Italy',
|
||||
'jamaica' => 'Jamaica',
|
||||
'japan' => 'Japan',
|
||||
'jersey' => 'Jersey',
|
||||
'jordan' => 'Jordan',
|
||||
'kazakhstan' => 'Kazakhstan',
|
||||
'kenya' => 'Kenya',
|
||||
'kiribati' => 'Kiribati',
|
||||
'koreaDemocraticPeoplesRepublicOf' => 'Korea, Democratic People\'s Republic of',
|
||||
'koreaRepublicOf' => 'Korea, Republic of',
|
||||
'kuwait' => 'Kuwait',
|
||||
'kyrgyzstan' => 'Kyrgyzstan',
|
||||
'laoPeoplesDemocraticRepublic' => 'Lao People\'s Democratic Republic',
|
||||
'latvia' => 'Latvia',
|
||||
'lebanon' => 'Lebanon',
|
||||
'lesotho' => 'Lesotho',
|
||||
'liberia' => 'Liberia',
|
||||
'libya' => 'Libya',
|
||||
'liechtenstein' => 'Liechtenstein',
|
||||
'lithuania' => 'Lithuania',
|
||||
'luxembourg' => 'Luxembourg',
|
||||
'macao' => 'Macao',
|
||||
'macedoniaTheFormerYugoslavRepublicOf' => 'Macedonia, the Former Yugoslav Republic of',
|
||||
'madagascar' => 'Madagascar',
|
||||
'malawi' => 'Malawi',
|
||||
'malaysia' => 'Malaysia',
|
||||
'maldives' => 'Maldives',
|
||||
'mali' => 'Mali',
|
||||
'malta' => 'Malta',
|
||||
'marshallIslands' => 'Marshall Islands',
|
||||
'martinique' => 'Martinique',
|
||||
'mauritania' => 'Mauritania',
|
||||
'mauritius' => 'Mauritius',
|
||||
'mayotte' => 'Mayotte',
|
||||
'mexico' => 'Mexico',
|
||||
'micronesiaFederatedStatesOf' => 'Micronesia, Federated States of',
|
||||
'moldovaRepublicOf' => 'Moldova, Republic of',
|
||||
'monaco' => 'Monaco',
|
||||
'mongolia' => 'Mongolia',
|
||||
'montenegro' => 'Montenegro',
|
||||
'montserrat' => 'Montserrat',
|
||||
'morocco' => 'Morocco',
|
||||
'mozambique' => 'Mozambique',
|
||||
'myanmar' => 'Myanmar',
|
||||
'namibia' => 'Namibia',
|
||||
'nauru' => 'Nauru',
|
||||
'nepal' => 'Nepal',
|
||||
'netherlands' => 'Netherlands',
|
||||
'newCaledonia' => 'New Caledonia',
|
||||
'newZealand' => 'New Zealand',
|
||||
'nicaragua' => 'Nicaragua',
|
||||
'niger' => 'Niger',
|
||||
'nigeria' => 'Nigeria',
|
||||
'niue' => 'Niue',
|
||||
'norfolkIsland' => 'Norfolk Island',
|
||||
'northernMarianaIslands' => 'Northern Mariana Islands',
|
||||
'norway' => 'Norway',
|
||||
'oman' => 'Oman',
|
||||
'pakistan' => 'Pakistan',
|
||||
'palau' => 'Palau',
|
||||
'palestineStateOf' => 'Palestine, State of',
|
||||
'panama' => 'Panama',
|
||||
'papuaNewGuinea' => 'Papua New Guinea',
|
||||
'paraguay' => 'Paraguay',
|
||||
'peru' => 'Peru',
|
||||
'philippines' => 'Philippines',
|
||||
'pitcairn' => 'Pitcairn',
|
||||
'poland' => 'Poland',
|
||||
'portugal' => 'Portugal',
|
||||
'puertoRico' => 'Puerto Rico',
|
||||
'qatar' => 'Qatar',
|
||||
'reunion' => 'Réunion',
|
||||
'romania' => 'Romania',
|
||||
'russianFederation' => 'Russian Federation',
|
||||
'rwanda' => 'Rwanda',
|
||||
'saintBarthelemy' => 'Saint Barthélemy',
|
||||
'saintHelenaAscensionAndTristanDaCunha' => 'Saint Helena, Ascension and Tristan da Cunha',
|
||||
'saintKittsAndNevis' => 'Saint Kitts and Nevis',
|
||||
'saintLucia' => 'Saint Lucia',
|
||||
'saintMartinFrenchPart' => 'Saint Martin (French part)',
|
||||
'saintPierreAndMiquelon' => 'Saint Pierre and Miquelon',
|
||||
'saintVincentAndTheGrenadines' => 'Saint Vincent and the Grenadines',
|
||||
'samoa' => 'Samoa',
|
||||
'sanMarino' => 'San Marino',
|
||||
'saoTomeAndPrincipe' => 'Sao Tome and Principe',
|
||||
'saudiArabia' => 'Saudi Arabia',
|
||||
'senegal' => 'Senegal',
|
||||
'serbia' => 'Serbia',
|
||||
'seychelles' => 'Seychelles',
|
||||
'sierraLeone' => 'Sierra Leone',
|
||||
'singapore' => 'Singapore',
|
||||
'sintMaartenDutchPart' => 'Sint Maarten (Dutch part)',
|
||||
'slovakia' => 'Slovakia',
|
||||
'slovenia' => 'Slovenia',
|
||||
'solomonIslands' => 'Solomon Islands',
|
||||
'somalia' => 'Somalia',
|
||||
'southAfrica' => 'South Africa',
|
||||
'southGeorgiaAndTheSouthSandwichIslands' => 'South Georgia and the South Sandwich Islands',
|
||||
'southSudan' => 'South Sudan',
|
||||
'spain' => 'Spain',
|
||||
'sriLanka' => 'Sri Lanka',
|
||||
'sudan' => 'Sudan',
|
||||
'suriname' => 'Suriname',
|
||||
'svalbardAndJanMayen' => 'Svalbard and Jan Mayen',
|
||||
'swaziland' => 'Swaziland',
|
||||
'sweden' => 'Sweden',
|
||||
'switzerland' => 'Switzerland',
|
||||
'syrianArabRepublic' => 'Syrian Arab Republic',
|
||||
'taiwanProvinceOfChina' => 'Taiwan, Province of China',
|
||||
'tajikistan' => 'Tajikistan',
|
||||
'tanzaniaUnitedRepublicOf' => 'Tanzania, United Republic of',
|
||||
'thailand' => 'Thailand',
|
||||
'timorLeste' => 'TimorLeste',
|
||||
'togo' => 'Togo',
|
||||
'tokelau' => 'Tokelau',
|
||||
'tonga' => 'Tonga',
|
||||
'trinidadAndTobago' => 'Trinidad and Tobago',
|
||||
'tunisia' => 'Tunisia',
|
||||
'turkey' => 'Turkey',
|
||||
'turkmenistan' => 'Turkmenistan',
|
||||
'turksAndCaicosIslands' => 'Turks and Caicos Islands',
|
||||
'tuvalu' => 'Tuvalu',
|
||||
'uganda' => 'Uganda',
|
||||
'ukraine' => 'Ukraine',
|
||||
'unitedArabEmirates' => 'United Arab Emirates',
|
||||
'unitedKingdom' => 'United Kingdom',
|
||||
'unitedStates' => 'United States',
|
||||
'unitedStatesMinorOutlyingIslands' => 'United States Minor Outlying Islands',
|
||||
'uruguay' => 'Uruguay',
|
||||
'uzbekistan' => 'Uzbekistan',
|
||||
'vanuatu' => 'Vanuatu',
|
||||
'venezuelaBolivarianRepublicOf' => 'Venezuela, Bolivarian Republic of',
|
||||
'vietNam' => 'Viet Nam',
|
||||
'virginIslandsBritish' => 'Virgin Islands, British',
|
||||
'virginIslandsUs' => 'Virgin Islands, U.S.',
|
||||
'wallisAndFutuna' => 'Wallis and Futuna',
|
||||
'westernSahara' => 'Western Sahara',
|
||||
'yemen' => 'Yemen',
|
||||
'zambia' => 'Zambia',
|
||||
'zimbabwe' => 'Zimbabwe'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@ use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Foundation\Validation\ValidatesRequests;
|
||||
use Illuminate\Routing\Controller as BaseController;
|
||||
use LDC\LDCCRM\Enums\Country;
|
||||
use App\Enums\Country;
|
||||
|
||||
class Controller extends BaseController
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
"laravel/sanctum": "^2.11",
|
||||
"laravel/tinker": "^2.5",
|
||||
"laravel/ui": "^3.3",
|
||||
"ldc/ldccrmv2client": "^3.0",
|
||||
"mews/purifier": "^3.3",
|
||||
"spatie/laravel-translatable": "^4.6"
|
||||
},
|
||||
|
|
@ -30,13 +29,6 @@
|
|||
"phpunit/phpunit": "^9.5.10",
|
||||
"slevomat/coding-standard": "^7.0"
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"name": "ldc/ldccrmv2client",
|
||||
"type": "vcs",
|
||||
"url": "https://voight001.lesidc.com/crm-client"
|
||||
}
|
||||
],
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "app/",
|
||||
|
|
|
|||
180
composer.lock
generated
180
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "7f7c186e055c23c10e5b4b302487d8f0",
|
||||
"content-hash": "9e5c04cb7369a0dfd36212e6ca2bf597",
|
||||
"packages": [
|
||||
{
|
||||
"name": "asm89/stack-cors",
|
||||
|
|
@ -1471,58 +1471,6 @@
|
|||
},
|
||||
"time": "2022-02-21T14:59:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "ldc/ldccrmv2client",
|
||||
"version": "3.0.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://voight001.lesidc.com/crm-client",
|
||||
"reference": "01be799d20268b8f91356ca8ef5d664ff090ced0"
|
||||
},
|
||||
"require": {
|
||||
"ext-curl": "^7.3",
|
||||
"guzzlehttp/guzzle": "^7.4",
|
||||
"kwaadpepper/enum": "^2.1",
|
||||
"php": "^7.3",
|
||||
"respect/validation": "^2.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"orchestra/testbench": "^6.13",
|
||||
"phpunit/phpunit": "~9.0",
|
||||
"slevomat/coding-standard": "^7.0",
|
||||
"squizlabs/php_codesniffer": "^3.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"LDC\\LDCCRM\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"LDC\\LDCCRM\\Tests\\": "tests"
|
||||
}
|
||||
},
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Jérémy Munsch",
|
||||
"email": "jeremy.munsch@ldc.fr",
|
||||
"homepage": "https://jeremydev.ovh"
|
||||
}
|
||||
],
|
||||
"description": "LDC CRM Client V2",
|
||||
"homepage": "https://github.com/kwaadpepper",
|
||||
"keywords": [
|
||||
"CRM",
|
||||
"Client",
|
||||
"LDC",
|
||||
"Laravel"
|
||||
],
|
||||
"time": "2022-02-11T13:57:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/commonmark",
|
||||
"version": "1.6.7",
|
||||
|
|
@ -2892,130 +2840,6 @@
|
|||
],
|
||||
"time": "2021-09-25T23:10:38+00:00"
|
||||
},
|
||||
{
|
||||
"name": "respect/stringifier",
|
||||
"version": "0.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Respect/Stringifier.git",
|
||||
"reference": "e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Respect/Stringifier/zipball/e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59",
|
||||
"reference": "e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^2.8",
|
||||
"malukenho/docheader": "^0.1.7",
|
||||
"phpunit/phpunit": "^6.4"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/stringify.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Respect\\Stringifier\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Respect/Stringifier Contributors",
|
||||
"homepage": "https://github.com/Respect/Stringifier/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Converts any value to a string",
|
||||
"homepage": "http://respect.github.io/Stringifier/",
|
||||
"keywords": [
|
||||
"respect",
|
||||
"stringifier",
|
||||
"stringify"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/Respect/Stringifier/issues",
|
||||
"source": "https://github.com/Respect/Stringifier/tree/0.2.0"
|
||||
},
|
||||
"time": "2017-12-29T19:39:25+00:00"
|
||||
},
|
||||
{
|
||||
"name": "respect/validation",
|
||||
"version": "2.2.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Respect/Validation.git",
|
||||
"reference": "4c21a7ffc9a4915673cb2c2843963919e664e627"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Respect/Validation/zipball/4c21a7ffc9a4915673cb2c2843963919e664e627",
|
||||
"reference": "4c21a7ffc9a4915673cb2c2843963919e664e627",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.3 || ^8.0",
|
||||
"respect/stringifier": "^0.2.0",
|
||||
"symfony/polyfill-mbstring": "^1.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"egulias/email-validator": "^3.0",
|
||||
"malukenho/docheader": "^0.1",
|
||||
"mikey179/vfsstream": "^1.6",
|
||||
"phpstan/phpstan": "^0.12",
|
||||
"phpstan/phpstan-deprecation-rules": "^0.12",
|
||||
"phpstan/phpstan-phpunit": "^0.12",
|
||||
"phpunit/phpunit": "^9.3",
|
||||
"psr/http-message": "^1.0",
|
||||
"respect/coding-standard": "^3.0",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"symfony/validator": "^3.0||^4.0",
|
||||
"zendframework/zend-validator": "^2.1"
|
||||
},
|
||||
"suggest": {
|
||||
"egulias/email-validator": "Strict (RFC compliant) email validation",
|
||||
"ext-bcmath": "Arbitrary Precision Mathematics",
|
||||
"ext-fileinfo": "File Information",
|
||||
"ext-mbstring": "Multibyte String Functions",
|
||||
"symfony/validator": "Use Symfony validator through Respect\\Validation",
|
||||
"zendframework/zend-validator": "Use Zend Framework validator through Respect\\Validation"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Respect\\Validation\\": "library/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Respect/Validation Contributors",
|
||||
"homepage": "https://github.com/Respect/Validation/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"description": "The most awesome validation engine ever created for PHP",
|
||||
"homepage": "http://respect.github.io/Validation/",
|
||||
"keywords": [
|
||||
"respect",
|
||||
"validation",
|
||||
"validator"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/Respect/Validation/issues",
|
||||
"source": "https://github.com/Respect/Validation/tree/2.2.3"
|
||||
},
|
||||
"time": "2021-03-19T14:12:45+00:00"
|
||||
},
|
||||
{
|
||||
"name": "spatie/laravel-translatable",
|
||||
"version": "4.6.0",
|
||||
|
|
@ -8398,5 +8222,5 @@
|
|||
"php": "^7.3|^8.0"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.1.0"
|
||||
"plugin-api-version": "2.0.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue