diff --git a/packages/countries-fr/composer.json b/packages/countries-fr/composer.json new file mode 100644 index 0000000..fc03d90 --- /dev/null +++ b/packages/countries-fr/composer.json @@ -0,0 +1,39 @@ +{ + "name": "squirephp/countries-fr", + "description": "A library containing the French translation of Squire's Country model.", + "keywords": ["squire"], + "license": "MIT", + "homepage": "https://github.com/squirephp", + "support": { + "issues": "https://github.com/squirephp/squire/issues", + "source": "https://github.com/squirephp/squire" + }, + "authors": [ + { + "name": "Dan Harrin", + "email": "dan@danharrin.com" + } + ], + "require": { + "php": "^7.2|^8.0", + "illuminate/support": "^6.0 || ^7.0 || ^8.0", + "squirephp/countries": "^2.0", + "squirephp/repository": "^2.0" + }, + "autoload": { + "psr-4": { + "Squire\\": "src" + } + }, + "extra": { + "laravel": { + "providers": [ + "Squire\\CountriesFrServiceProvider" + ] + } + }, + "config": { + "sort-packages": true + }, + "minimum-stability": "dev" +} diff --git a/packages/countries-fr/resources/data.csv b/packages/countries-fr/resources/data.csv new file mode 100644 index 0000000..91e1dc1 --- /dev/null +++ b/packages/countries-fr/resources/data.csv @@ -0,0 +1,250 @@ +id,calling_code,capital_city,code_2,code_3,continent_id,currency_id,flag,name +ad,376,Andorra la Vella,ad,and,eu,eur,🇦🇩,Andorre +ae,971,Abu Dhabi,ae,are,as,aed,🇦🇪,Émirats arabes unis +af,93,Kabul,af,afg,as,afn,🇦🇫,Afghanistan +ag,1268,St. John's,ag,atg,na,xcd,🇦🇬,Antigua-et-Barbuda +ai,1264,The Valley,ai,aia,na,xcd,🇦🇮,Anguilla +al,355,Tirana,al,alb,eu,all,🇦🇱,Albanie +am,374,Yerevan,am,arm,as,amd,🇦🇲,Arménie +ao,244,Luanda,ao,ago,af,aoa,🇦🇴,Angola +aq,672,,aq,ata,an,,🇦🇶,Antarctique +ar,54,Buenos Aires,ar,arg,sa,ars,🇦🇷,Argentine +as,1684,Pago Pago,as,asm,oc,usd,🇦🇸,Samoa américaines +at,43,Vienna,at,aut,eu,eur,🇦🇹,Autriche +au,61,Canberra,au,aus,oc,aud,🇦🇺,Australie +aw,297,Oranjestad,aw,abw,na,awg,🇦🇼,Aruba +ax,358,Mariehamn,ax,ala,eu,eur,🇦🇽,Îles Åland +az,994,Baku,az,aze,as,azn,🇦🇿,Azerbaïdjan +ba,387,Sarajevo,ba,bih,eu,bam,🇧🇦,Bosnie-Herzégovine +bb,1246,Bridgetown,bb,brb,na,bbd,🇧🇧,Barbade +bd,880,Dhaka,bd,bgd,as,bdt,🇧🇩,Bangladesh +be,32,Brussels,be,bel,eu,eur,🇧🇪,Belgique +bf,226,Ouagadougou,bf,bfa,af,xof,🇧🇫,Burkina Faso +bg,359,Sofia,bg,bgr,eu,bgn,🇧🇬,Bulgarie +bh,973,Manama,bh,bhr,as,bhd,🇧🇭,Bahreïn +bi,257,Bujumbura,bi,bdi,af,bif,🇧🇮,Burundi +bj,229,Porto-Novo,bj,ben,af,xof,🇧🇯,Bénin +bl,590,Gustavia,bl,blm,na,eur,🇧🇱,Saint-Barthélemy +bm,1441,Hamilton,bm,bmu,na,bmd,🇧🇲,Bermudes +bn,673,Bandar Seri Begawan,bn,brn,as,bnd,🇧🇳,Brunéi Darussalam +bo,591,Sucre,bo,bol,sa,bob,🇧🇴,Bolivie +bq,599,,bq,bes,na,usd,🇧🇶,Pays-Bas caribéens +br,55,Brasilia,br,bra,sa,brl,🇧🇷,Brésil +bs,1242,Nassau,bs,bhs,na,bsd,🇧🇸,Bahamas +bt,975,Thimphu,bt,btn,as,btn,🇧🇹,Bhoutan +bv,55,,bv,bvt,an,nok,🇧🇻,Île Bouvet +bw,267,Gaborone,bw,bwa,af,bwp,🇧🇼,Botswana +by,375,Minsk,by,blr,eu,byr,🇧🇾,Biélorussie +bz,501,Belmopan,bz,blz,na,bzd,🇧🇿,Belize +ca,1,Ottawa,ca,can,na,cad,🇨🇦,Canada +cc,61,West Island,cc,cck,as,aud,🇨🇨,Îles Cocos +cd,243,Kinshasa,cd,cod,af,cdf,🇨🇩,Congo-Kinshasa +cf,236,Bangui,cf,caf,af,xaf,🇨🇫,République centrafricaine +cg,242,Brazzaville,cg,cog,af,xaf,🇨🇬,Congo-Brazzaville +ch,41,Berne,ch,che,eu,chf,🇨🇭,Suisse +ci,225,Yamoussoukro,ci,civ,af,xof,🇨🇮,Côte d’Ivoire +ck,682,Avarua,ck,cok,oc,nzd,🇨🇰,Îles Cook +cl,56,Santiago,cl,chl,sa,clp,🇨🇱,Chili +cm,237,Yaounde,cm,cmr,af,xaf,🇨🇲,Cameroun +cn,86,Beijing,cn,chn,as,cny,🇨🇳,Chine +co,57,Bogota,co,col,sa,cop,🇨🇴,Colombie +cr,506,San Jose,cr,cri,na,crc,🇨🇷,Costa Rica +cu,53,Havana,cu,cub,na,cup,🇨🇺,Cuba +cv,238,Praia,cv,cpv,af,cve,🇨🇻,Cap-Vert +cw,599, Willemstad,cw,cuw,na,ang,🇨🇼,Curaçao +cx,61,Flying Fish Cove,cx,cxr,as,aud,🇨🇽,Île Christmas +cy,357,Nicosia,cy,cyp,eu,eur,🇨🇾,Chypre +cz,420,Prague,cz,cze,eu,czk,🇨🇿,Tchéquie +de,49,Berlin,de,deu,eu,eur,🇩🇪,Allemagne +dj,253,Djibouti,dj,dji,af,djf,🇩🇯,Djibouti +dk,45,Copenhagen,dk,dnk,eu,dkk,🇩🇰,Danemark +dm,1767,Roseau,dm,dma,na,xcd,🇩🇲,Dominique +do,1809,Santo Domingo,do,dom,na,dop,🇩🇴,République dominicaine +dz,213,Algiers,dz,dza,af,dzd,🇩🇿,Algérie +ec,593,Quito,ec,ecu,sa,usd,🇪🇨,Équateur +ee,372,Tallinn,ee,est,eu,eur,🇪🇪,Estonie +eg,20,Cairo,eg,egy,af,egp,🇪🇬,Égypte +eh,212,El-Aaiun,eh,esh,af,mad,🇪🇭,Sahara occidental +er,291,Asmara,er,eri,af,ern,🇪🇷,Érythrée +es,34,Madrid,es,esp,eu,eur,🇪🇸,Espagne +et,251,Addis Ababa,et,eth,af,etb,🇪🇹,Éthiopie +fi,358,Helsinki,fi,fin,eu,eur,🇫🇮,Finlande +fj,679,Suva,fj,fji,oc,fjd,🇫🇯,Fidji +fk,500,Stanley,fk,flk,sa,fkp,🇫🇰,Îles Malouines +fm,691,Palikir,fm,fsm,oc,usd,🇫🇲,États fédérés de Micronésie +fo,298,Torshavn,fo,fro,eu,dkk,🇫🇴,Îles Féroé +fr,33,Paris,fr,fra,eu,eur,🇫🇷,France +ga,241,Libreville,ga,gab,af,xaf,🇬🇦,Gabon +gb,44,London,gb,gbr,eu,gbp,🇬🇧,Royaume-Uni +gd,1473,St. George's,gd,grd,na,xcd,🇬🇩,Grenade +ge,995,Tbilisi,ge,geo,as,gel,🇬🇪,Géorgie +gf,594,Cayenne,gf,guf,sa,eur,🇬🇫,Guyane française +gg,44,St Peter Port,gg,ggy,eu,gbp,🇬🇬,Guernesey +gh,233,Accra,gh,gha,af,ghs,🇬🇭,Ghana +gi,350,Gibraltar,gi,gib,eu,gip,🇬🇮,Gibraltar +gl,299,Nuuk,gl,grl,na,dkk,🇬🇱,Groenland +gm,220,Banjul,gm,gmb,af,gmd,🇬🇲,Gambie +gn,224,Conakry,gn,gin,af,gnf,🇬🇳,Guinée +gp,590,Basse-Terre,gp,glp,na,eur,🇬🇵,Guadeloupe +gq,240,Malabo,gq,gnq,af,xaf,🇬🇶,Guinée équatoriale +gr,30,Athens,gr,grc,eu,eur,🇬🇷,Grèce +gs,500,Grytviken,gs,sgs,an,gbp,🇬🇸,Géorgie du Sud et îles Sandwich du Sud +gt,502,Guatemala City,gt,gtm,na,gtq,🇬🇹,Guatemala +gu,1671,Hagatna,gu,gum,oc,usd,🇬🇺,Guam +gw,245,Bissau,gw,gnb,af,xof,🇬🇼,Guinée-Bissau +gy,592,Georgetown,gy,guy,sa,gyd,🇬🇾,Guyana +hk,852,Hong Kong,hk,hkg,as,hkd,🇭🇰,R.A.S. chinoise de Hong Kong +hn,504,Tegucigalpa,hn,hnd,na,hnl,🇭🇳,Honduras +hr,385,Zagreb,hr,hrv,eu,hrk,🇭🇷,Croatie +ht,509,Port-au-Prince,ht,hti,na,htg,🇭🇹,Haïti +hu,36,Budapest,hu,hun,eu,huf,🇭🇺,Hongrie +id,62,Jakarta,id,idn,as,idr,🇮🇩,Indonésie +ie,353,Dublin,ie,irl,eu,eur,🇮🇪,Irlande +il,972,Jerusalem,il,isr,as,ils,🇮🇱,Israël +im,44,"Douglas, Isle of Man",im,imn,eu,gbp,🇮🇲,Île de Man +in,91,New Delhi,in,ind,as,inr,🇮🇳,Inde +io,246,Diego Garcia,io,iot,as,usd,🇮🇴,Territoire britannique de l’océan Indien +iq,964,Baghdad,iq,irq,as,iqd,🇮🇶,Irak +ir,98,Tehran,ir,irn,as,irr,🇮🇷,Iran +is,354,Reykjavik,is,isl,eu,isk,🇮🇸,Islande +it,39,Rome,it,ita,eu,eur,🇮🇹,Italie +je,44,Saint Helier,je,jey,eu,gbp,🇯🇪,Jersey +jm,1876,Kingston,jm,jam,na,jmd,🇯🇲,Jamaïque +jo,962,Amman,jo,jor,as,jod,🇯🇴,Jordanie +jp,81,Tokyo,jp,jpn,as,jpy,🇯🇵,Japon +ke,254,Nairobi,ke,ken,af,kes,🇰🇪,Kenya +kg,996,Bishkek,kg,kgz,as,kgs,🇰🇬,Kirghizistan +kh,855,Phnom Penh,kh,khm,as,khr,🇰🇭,Cambodge +ki,686,Tarawa,ki,kir,oc,aud,🇰🇮,Kiribati +km,269,Moroni,km,com,af,kmf,🇰🇲,Comores +kn,1869,Basseterre,kn,kna,na,xcd,🇰🇳,Saint-Christophe-et-Niévès +kp,850,Pyongyang,kp,prk,as,kpw,🇰🇵,Corée du Nord +kr,82,Seoul,kr,kor,as,krw,🇰🇷,Corée du Sud +kw,965,Kuwait City,kw,kwt,as,kwd,🇰🇼,Koweït +ky,1345,George Town,ky,cym,na,kyd,🇰🇾,Îles Caïmans +kz,7,Astana,kz,kaz,as,kzt,🇰🇿,Kazakhstan +la,856,Vientiane,la,lao,as,lak,🇱🇦,Laos +lb,961,Beirut,lb,lbn,as,lbp,🇱🇧,Liban +lc,1758,Castries,lc,lca,na,xcd,🇱🇨,Sainte-Lucie +li,423,Vaduz,li,lie,eu,chf,🇱🇮,Liechtenstein +lk,94,Colombo,lk,lka,as,lkr,🇱🇰,Sri Lanka +lr,231,Monrovia,lr,lbr,af,lrd,🇱🇷,Libéria +ls,266,Maseru,ls,lso,af,lsl,🇱🇸,Lesotho +lt,370,Vilnius,lt,ltu,eu,ltl,🇱🇹,Lituanie +lu,352,Luxembourg,lu,lux,eu,eur,🇱🇺,Luxembourg +lv,371,Riga,lv,lva,eu,eur,🇱🇻,Lettonie +ly,218,Tripolis,ly,lby,af,lyd,🇱🇾,Libye +ma,212,Rabat,ma,mar,af,mad,🇲🇦,Maroc +mc,377,Monaco,mc,mco,eu,eur,🇲🇨,Monaco +md,373,Chisinau,md,mda,eu,mdl,🇲🇩,Moldavie +me,382,Podgorica,me,mne,eu,eur,🇲🇪,Monténégro +mf,590,Marigot,mf,maf,na,eur,🇲🇫,Saint-Martin +mg,261,Antananarivo,mg,mdg,af,mga,🇲🇬,Madagascar +mh,692,Majuro,mh,mhl,oc,usd,🇲🇭,Îles Marshall +mk,389,Skopje,mk,mkd,eu,mkd,🇲🇰,Macédoine du Nord +ml,223,Bamako,ml,mli,af,xof,🇲🇱,Mali +mm,95,Nay Pyi Taw,mm,mmr,as,mmk,🇲🇲,Myanmar (Birmanie) +mn,976,Ulan Bator,mn,mng,as,mnt,🇲🇳,Mongolie +mo,853,Macao,mo,mac,as,mop,🇲🇴,R.A.S. chinoise de Macao +mp,1670,Saipan,mp,mnp,oc,usd,🇲🇵,Îles Mariannes du Nord +mq,596,Fort-de-France,mq,mtq,na,eur,🇲🇶,Martinique +mr,222,Nouakchott,mr,mrt,af,mro,🇲🇷,Mauritanie +ms,1664,Plymouth,ms,msr,na,xcd,🇲🇸,Montserrat +mt,356,Valletta,mt,mlt,eu,eur,🇲🇹,Malte +mu,230,Port Louis,mu,mus,af,mur,🇲🇺,Maurice +mv,960,Male,mv,mdv,as,mvr,🇲🇻,Maldives +mw,265,Lilongwe,mw,mwi,af,mwk,🇲🇼,Malawi +mx,52,Mexico City,mx,mex,na,mxn,🇲🇽,Mexique +my,60,Kuala Lumpur,my,mys,as,myr,🇲🇾,Malaisie +mz,258,Maputo,mz,moz,af,mzn,🇲🇿,Mozambique +na,264,Windhoek,na,nam,af,nad,🇳🇦,Namibie +nc,687,Noumea,nc,ncl,oc,xpf,🇳🇨,Nouvelle-Calédonie +ne,227,Niamey,ne,ner,af,xof,🇳🇪,Niger +nf,672,Kingston,nf,nfk,oc,aud,🇳🇫,Île Norfolk +ng,234,Abuja,ng,nga,af,ngn,🇳🇬,Nigéria +ni,505,Managua,ni,nic,na,nio,🇳🇮,Nicaragua +nl,31,Amsterdam,nl,nld,eu,eur,🇳🇱,Pays-Bas +no,47,Oslo,no,nor,eu,nok,🇳🇴,Norvège +np,977,Kathmandu,np,npl,as,npr,🇳🇵,Népal +nr,674,Yaren,nr,nru,oc,aud,🇳🇷,Nauru +nu,683,Alofi,nu,niu,oc,nzd,🇳🇺,Niue +nz,64,Wellington,nz,nzl,oc,nzd,🇳🇿,Nouvelle-Zélande +om,968,Muscat,om,omn,as,omr,🇴🇲,Oman +pa,507,Panama City,pa,pan,na,pab,🇵🇦,Panama +pe,51,Lima,pe,per,sa,pen,🇵🇪,Pérou +pf,689,Papeete,pf,pyf,oc,xpf,🇵🇫,Polynésie française +pg,675,Port Moresby,pg,png,oc,pgk,🇵🇬,Papouasie-Nouvelle-Guinée +ph,63,Manila,ph,phl,as,php,🇵🇭,Philippines +pk,92,Islamabad,pk,pak,as,pkr,🇵🇰,Pakistan +pl,48,Warsaw,pl,pol,eu,pln,🇵🇱,Pologne +pm,508,Saint-Pierre,pm,spm,na,eur,🇵🇲,Saint-Pierre-et-Miquelon +pn,870,Adamstown,pn,pcn,oc,nzd,🇵🇳,Îles Pitcairn +pr,1787,San Juan,pr,pri,na,usd,🇵🇷,Porto Rico +ps,970,East Jerusalem,ps,pse,as,ils,🇵🇸,Territoires palestiniens +pt,351,Lisbon,pt,prt,eu,eur,🇵🇹,Portugal +pw,680,Melekeok,pw,plw,oc,usd,🇵🇼,Palaos +py,595,Asuncion,py,pry,sa,pyg,🇵🇾,Paraguay +qa,974,Doha,qa,qat,as,qar,🇶🇦,Qatar +re,262,Saint-Denis,re,reu,af,eur,🇷🇪,La Réunion +ro,40,Bucharest,ro,rou,eu,ron,🇷🇴,Roumanie +rs,381,Belgrade,rs,srb,eu,rsd,🇷🇸,Serbie +ru,7,Moscow,ru,rus,eu,rub,🇷🇺,Russie +rw,250,Kigali,rw,rwa,af,rwf,🇷🇼,Rwanda +sa,966,Riyadh,sa,sau,as,sar,🇸🇦,Arabie saoudite +sb,677,Honiara,sb,slb,oc,sbd,🇸🇧,Îles Salomon +sc,248,Victoria,sc,syc,af,scr,🇸🇨,Seychelles +sd,249,Khartoum,sd,sdn,af,sdg,🇸🇩,Soudan +se,46,Stockholm,se,swe,eu,sek,🇸🇪,Suède +sg,65,Singapur,sg,sgp,as,sgd,🇸🇬,Singapour +sh,290,Jamestown,sh,shn,af,shp,🇸🇭,Sainte-Hélène +si,386,Ljubljana,si,svn,eu,eur,🇸🇮,Slovénie +sj,47,Longyearbyen,sj,sjm,eu,nok,🇸🇯,Svalbard et Jan Mayen +sk,421,Bratislava,sk,svk,eu,eur,🇸🇰,Slovaquie +sl,232,Freetown,sl,sle,af,sll,🇸🇱,Sierra Leone +sm,378,San Marino,sm,smr,eu,eur,🇸🇲,Saint-Marin +sn,221,Dakar,sn,sen,af,xof,🇸🇳,Sénégal +so,252,Mogadishu,so,som,af,sos,🇸🇴,Somalie +sr,597,Paramaribo,sr,sur,sa,srd,🇸🇷,Suriname +ss,211,Juba,ss,ssd,af,ssp,🇸🇸,Soudan du Sud +st,239,Sao Tome,st,stp,af,std,🇸🇹,Sao Tomé-et-Principe +sv,503,San Salvador,sv,slv,na,usd,🇸🇻,Salvador +sx,599,Philipsburg,sx,sxm,na,ang,🇸🇽,Saint-Martin (partie néerlandaise) +sy,963,Damascus,sy,syr,as,syp,🇸🇾,Syrie +sz,268,Mbabane,sz,swz,af,szl,🇸🇿,Eswatini +tc,1649,Cockburn Town,tc,tca,na,usd,🇹🇨,Îles Turques-et-Caïques +td,235,N'Djamena,td,tcd,af,xaf,🇹🇩,Tchad +tf,,Port-aux-Francais,tf,atf,an,eur,🇹🇫,Terres australes françaises +tg,228,Lome,tg,tgo,af,xof,🇹🇬,Togo +th,66,Bangkok,th,tha,as,thb,🇹🇭,Thaïlande +tj,992,Dushanbe,tj,tjk,as,tjs,🇹🇯,Tadjikistan +tk,690,,tk,tkl,oc,nzd,🇹🇰,Tokelau +tl,670,Dili,tl,tls,oc,usd,🇹🇱,Timor oriental +tm,993,Ashgabat,tm,tkm,as,tmt,🇹🇲,Turkménistan +tn,216,Tunis,tn,tun,af,tnd,🇹🇳,Tunisie +to,676,Nuku'alofa,to,ton,oc,top,🇹🇴,Tonga +tr,90,Ankara,tr,tur,as,try,🇹🇷,Turquie +tt,1868,Port of Spain,tt,tto,na,ttd,🇹🇹,Trinité-et-Tobago +tv,688,Funafuti,tv,tuv,oc,aud,🇹🇻,Tuvalu +tw,886,Taipei,tw,twn,as,twd,🇹🇼,Taïwan +tz,255,Dodoma,tz,tza,af,tzs,🇹🇿,Tanzanie +ua,380,Kiev,ua,ukr,eu,uah,🇺🇦,Ukraine +ug,256,Kampala,ug,uga,af,ugx,🇺🇬,Ouganda +um,246,,um,umi,oc,usd,🇺🇲,Îles mineures éloignées des États-Unis +us,1,Washington,us,usa,na,usd,🇺🇸,États-Unis +uy,598,Montevideo,uy,ury,sa,uyu,🇺🇾,Uruguay +uz,998,Tashkent,uz,uzb,as,uzs,🇺🇿,Ouzbékistan +va,379,Vatican City,va,vat,eu,eur,🇻🇦,État de la Cité du Vatican +vc,1784,Kingstown,vc,vct,na,xcd,🇻🇨,Saint-Vincent-et-les-Grenadines +ve,58,Caracas,ve,ven,sa,vef,🇻🇪,Venezuela +vg,1284,Road Town,vg,vgb,na,usd,🇻🇬,Îles Vierges britanniques +vi,1340,Charlotte Amalie,vi,vir,na,usd,🇻🇮,Îles Vierges des États-Unis +vn,84,Hanoi,vn,vnm,as,vnd,🇻🇳,Vietnam +vu,678,Port Vila,vu,vut,oc,vuv,🇻🇺,Vanuatu +wf,681,Mata Utu,wf,wlf,oc,xpf,🇼🇫,Wallis-et-Futuna +ws,685,Apia,ws,wsm,oc,wst,🇼🇸,Samoa +xk,383,Pristina,xk,xkx,eu,eur,🇽🇰,Kosovo +ye,967,Sanaa,ye,yem,as,yer,🇾🇪,Yémen +yt,262,Mamoudzou,yt,myt,af,eur,🇾🇹,Mayotte +za,27,Pretoria,za,zaf,af,zar,🇿🇦,Afrique du Sud +zm,260,Lusaka,zm,zmb,af,zmk,🇿🇲,Zambie +zw,263,Harare,zw,zwe,af,zwl,🇿🇼,Zimbabwe \ No newline at end of file diff --git a/packages/countries-fr/src/CountriesFrServiceProvider.php b/packages/countries-fr/src/CountriesFrServiceProvider.php new file mode 100644 index 0000000..486a816 --- /dev/null +++ b/packages/countries-fr/src/CountriesFrServiceProvider.php @@ -0,0 +1,14 @@ +