{"id":13395662,"url":"https://github.com/mledoze/countries","last_synced_at":"2025-05-13T15:02:04.181Z","repository":{"id":2171641,"uuid":"3118246","full_name":"mledoze/countries","owner":"mledoze","description":"World countries in JSON, CSV, XML and Yaml. Any help is welcome!","archived":false,"fork":false,"pushed_at":"2025-04-24T10:47:52.000Z","size":28248,"stargazers_count":6042,"open_issues_count":15,"forks_count":1276,"subscribers_count":157,"default_branch":"master","last_synced_at":"2025-05-01T09:02:34.118Z","etag":null,"topics":["countries","csv","geojson","json","php","topojson","xml","yaml"],"latest_commit_sha":null,"homepage":"https://mledoze.github.io/countries/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"odbl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mledoze.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-01-06T14:01:19.000Z","updated_at":"2025-04-30T15:09:44.000Z","dependencies_parsed_at":"2024-01-03T05:42:32.412Z","dependency_job_id":"a8cb8131-c3c1-499a-ba21-ea799a00ea68","html_url":"https://github.com/mledoze/countries","commit_stats":{"total_commits":609,"total_committers":122,"mean_commits":4.991803278688525,"dds":0.6765188834154352,"last_synced_commit":"2bbe1c851cdf885dea50b654d655d18ed3b1dd3e"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mledoze%2Fcountries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mledoze%2Fcountries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mledoze%2Fcountries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mledoze%2Fcountries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mledoze","download_url":"https://codeload.github.com/mledoze/countries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252058587,"owners_count":21688065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["countries","csv","geojson","json","php","topojson","xml","yaml"],"created_at":"2024-07-30T18:00:27.379Z","updated_at":"2025-05-05T18:05:26.136Z","avatar_url":"https://github.com/mledoze.png","language":"PHP","readme":"# World countries in JSON, CSV, XML and YAML.\n\n[![License](https://img.shields.io/packagist/l/mledoze/countries.svg?style=flat)](https://opendatacommons.org/licenses/odbl/1.0/)\n[![Build Status](https://github.com/mledoze/countries/workflows/CI/badge.svg)](https://github.com/mledoze/countries/actions)\n\n[![Latest Stable Version](https://img.shields.io/npm/v/world-countries.svg?style=flat)](https://www.npmjs.com/package/world-countries)\n[![npm downloads](https://img.shields.io/npm/dm/world-countries?label=downloads)](https://www.npmjs.com/package/world-countries)\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/mledoze/countries.svg?style=flat)](https://packagist.org/packages/mledoze/countries)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/mledoze/countries.svg)](https://packagist.org/packages/mledoze/countries)\n[![Packagist downloads](https://img.shields.io/packagist/dm/mledoze/countries?label=downloads)](https://packagist.org/packages/mledoze/countries)\n\n## Countries data\nThis repository contains a list of world countries, as defined by [ISO Standard 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1),\nin JSON, CSV, XML and YAML. **Warning:** not all entities in this project are independent countries; refer to the `independent` property to know if the country is considered a sovereign state.\n\nEach line contains the country:\n\n - `name`\n \t - `common` - common name in english\n \t - `official` - official name in english\n \t - `native` - list of all native names\n \t \t- key: three-letter ISO 639-3 language code\n\t \t- value: name object\n\t \t\t- key: `official` - official name translation\n\t \t\t- key: `common` - common name translation\n - country code top-level domain (`tld`)\n - code ISO 3166-1 alpha-2 (`cca2`)\n - code ISO 3166-1 numeric (`ccn3`)\n - code ISO 3166-1 alpha-3 (`cca3`)\n - code International Olympic Committee (`cioc`)\n - ISO 3166-1 independence status (`independent`) (denotes the country is considered a sovereign state)\n - ISO 3166-1 assignment status (`status`)\n - UN Member status (`unMember`)\n - [UN Regional Group](https://en.wikipedia.org/wiki/United_Nations_Regional_Groups) (`unRegionalGroup`)\n - `currencies` - list of all currencies\n \t- key: ISO 4217 currency code\n \t- value: currency object\n \t\t- key: `name` name of the currency\n \t\t- key: `symbol` symbol of the currency\n - International Direct Dialing info (`idd`)\n \t- `root` - the root geographical code prefix. e.g. +6 for New Zealand, +4 for UK.\n \t- `suffixes` - list of all suffixes assigned to this country. 4 for NZ, 809, 829, and 849 for Dominican Republic.\n - capital city(ies) (`capital`)\n - alternative spellings (`altSpellings`)\n - region\n - subregion\n - list of official languages (`languages`)\n \t- key: three-letter ISO 639-3 language code\n \t- value: name of the language in english\n - list of name translations (`translations`)\n \t- key: three-letter ISO 639-3 language code\n \t- value: name object\n \t\t- key: official - official name translation\n \t\t- key: common - common name translation\n - latitude and longitude (`latlng`)\n - `demonyms` - name of residents, translated \u0026 genderized\n    - key: three-letter ISO 639-3 language code\n\t- value: genderized demonym object\n\t\t- key: `f` (female) or `m` (male)\n\t\t- value: genderized demonym translation\n - landlocked status (`landlocked`)\n - land borders (`borders`)\n - land area in km² (`area`)\n - emoji flag (`flag`)\n - calling codes (`callingCodes`)\n\n#### Additional data\nThe [data](https://github.com/mledoze/countries/tree/master/data) folder contains additional data such as the countries\nGeoJSON outlines and flags in SVG format.\n\n## Examples\n### JSON\n```json\n{\n\t\"name\": {\n\t\t\"common\": \"Austria\",\n\t\t\"official\": \"Republic of Austria\",\n\t\t\"native\": {\n\t\t\t\"bar\": {\n\t\t\t\t\"official\": \"Republik Österreich\",\n\t\t\t\t\"common\": \"Österreich\"\n\t\t\t}\n\t\t}\n\t},\n\t\"tld\": [\".at\"],\n\t\"cca2\": \"AT\",\n\t\"ccn3\": \"040\",\n\t\"cca3\": \"AUT\",\n\t\"cioc\": \"AUT\",\n\t\"independent\": true,\n\t\"status\": \"officially-assigned\",\n\t\"unMember\": true,\n\t\"unRegionalGroup\": \"Western European and Others Group\",\n\t\"currencies\": {\"EUR\": {\"name\": \"Euro\", \"symbol\": \"\\u20ac\"}},\n\t\"idd\": {\n\t\t\"root\": \"+4\",\n\t\t\"suffixes\": [\"3\"]\n\t},\n\t\"capital\": [\"Vienna\"],\n\t\"altSpellings\": [\"AT\", \"Osterreich\", \"Oesterreich\"],\n\t\"region\": \"Europe\",\n\t\"subregion\": \"Western Europe\",\n\t\"languages\": {\n\t\t\"bar\": \"Austro-Bavarian German\"\n\t},\n\t\"translations\": {\n\t\t\"cym\": {\"official\": \"Republic of Austria\", \"common\": \"Awstria\"},\n\t\t\"deu\": {\"official\": \"Republik Österreich\", \"common\": \"Österreich\"},\n\t\t\"fra\": {\"official\": \"République d'Autriche\", \"common\": \"Autriche\"},\n\t\t\"hrv\": {\"official\": \"Republika Austrija\", \"common\": \"Austrija\"},\n\t\t\"ita\": {\"official\": \"Repubblica d'Austria\", \"common\": \"Austria\"},\n\t\t\"jpn\": {\"official\": \"オーストリア共和国\", \"common\": \"オーストリア\"},\n\t\t\"nld\": {\"official\": \"Republiek Oostenrijk\", \"common\": \"Oostenrijk\"},\n\t\t\"por\": {\"official\": \"República da Áustria\", \"common\": \"Áustria\"},\n\t\t\"rus\": {\"official\": \"Австрийская Республика\", \"common\": \"Австрия\"},\n\t\t\"spa\": {\"official\": \"República de Austria\", \"common\": \"Austria\"}\n\t},\n\t\"latlng\": [47.33333333, 13.33333333],\n\t\"demonyms\": {\n\t\t\"fra\": {\n\t\t\t\"f\": \"Autrichienne\",\n\t\t\t\"m\": \"Autrichien\"\n\t\t},\n\t\t\"spa\": {\n\t\t\t\"f\": \"Austriaco\",\n\t\t\t\"m\": \"Austriaca\"\n\t\t}\n\t},\n\t\"landlocked\": true,\n\t\"borders\": [\"CZE\", \"DEU\", \"HUN\", \"ITA\", \"LIE\", \"SVK\", \"SVN\", \"CHE\"],\n\t\"area\": 83871,\n\t\"callingCodes\": [\"+43\"]\n\t\"flag\": \"\\ud83c\\udde6\\ud83c\\uddf9\"\n}\n```\n\n### GeoJSON and TopoJSON outlines\nSee an example for Germany: [GeoJSON](https://github.com/mledoze/countries/blob/bb61a1cddfefd09ad5c92ad0a1effbfceba39930/data/deu.geo.json) or [TopoJSON](https://github.com/mledoze/countries/blob/442472de98e80f4a44f1028960dbb0dfb1d942fe/data/deu.topo.json).\n\n### CSV\n```csv\n\"name.common\",\"name.official\",\"tld\",\"cca2\",\"ccn3\",\"cca3\",\"cioc\",\"independent\",\"status\",\"unMember\",\"currencies\",\"idd.root\",\"idd.suffixes\",\"capital\",\"altSpellings\",\"region\",\"subregion\",\"languages\",\"translations.ces.official\",\"translations.ces.common\",\"translations.deu.official\",\"translations.deu.common\",\"translations.est.official\",\"translations.est.common\",\"translations.fin.official\",\"translations.fin.common\",\"translations.fra.official\",\"translations.fra.common\",\"translations.hrv.official\",\"translations.hrv.common\",\"translations.hun.official\",\"translations.hun.common\",\"translations.ita.official\",\"translations.ita.common\",\"translations.jpn.official\",\"translations.jpn.common\",\"translations.kor.official\",\"translations.kor.common\",\"translations.nld.official\",\"translations.nld.common\",\"translations.per.official\",\"translations.per.common\",\"translations.pol.official\",\"translations.pol.common\",\"translations.por.official\",\"translations.por.common\",\"translations.rus.official\",\"translations.rus.common\",\"translations.slk.official\",\"translations.slk.common\",\"translations.spa.official\",\"translations.spa.common\",\"translations.swe.official\",\"translations.swe.common\",\"translations.urd.official\",\"translations.urd.common\",\"translations.zho.official\",\"translations.zho.common\",\"latlng\",\"landlocked\",\"borders\",\"area\",\"flag\",\"demonyms.eng.f\",\"demonyms.eng.m\",\"demonyms.fra.f\",\"demonyms.fra.m\",\"callingCodes\"\n\"Aruba\",\"Aruba\",\".aw\",\"AW\",\"533\",\"ABW\",\"ARU\",\"0\",\"officially-assigned\",\"0\",\"AWG\",\"+2\",\"97\",\"Oranjestad\",\"AW\",\"Americas\",\"Caribbean\",\"Dutch,Papiamento\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"アルバ\",\"アルバ\",\"아루바\",\"아루바\",\"Aruba\",\"Aruba\",\"آروبا\",\"آروبا\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Аруба\",\"Аруба\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"Aruba\",\"اروبا\",\"اروبا\",\"阿鲁巴\",\"阿鲁巴\",\"12.5,-69.96666666\",\"0\",\"\",\"180\",\"🇦🇼\",\"Aruban\",\"Aruban\",\"Arubaise\",\"Arubais\",\"+297\"\n\"Afghanistan\",\"Islamic Republic of Afghanistan\",\".af\",\"AF\",\"004\",\"AFG\",\"AFG\",\"1\",\"officially-assigned\",\"1\",\"AFN\",\"+9\",\"3\",\"Kabul\",\"AF,Afġānistān\",\"Asia\",\"Southern Asia\",\"Dari,Pashto,Turkmen\",\"Afghánská islámská republika\",\"Afghánistán\",\"Islamische Republik Afghanistan\",\"Afghanistan\",\"Afganistani Islamivabariik\",\"Afganistan\",\"Afganistanin islamilainen tasavalta\",\"Afganistan\",\"République islamique d'Afghanistan\",\"Afghanistan\",\"Islamska Republika Afganistan\",\"Afganistan\",\"Afganisztáni Iszlám Köztársaság\",\"Afganisztán\",\"Repubblica islamica dell'Afghanistan\",\"Afghanistan\",\"アフガニスタン・イスラム共和国\",\"アフガニスタン\",\"아프가니스탄 이슬람 공화국\",\"아프가니스탄\",\"Islamitische Republiek Afghanistan\",\"Afghanistan\",\"جمهوری اسلامی افغانستان\",\"افغانستان\",\"Islamska Republika Afganistanu\",\"Afganistan\",\"República Islâmica do Afeganistão\",\"Afeganistão\",\"Исламская Республика Афганистан\",\"Афганистан\",\"Afgánsky islamský štát\",\"Afganistan\",\"República Islámica de Afganistán\",\"Afganistán\",\"Islamiska republiken Afghanistan\",\"Afghanistan\",\"اسلامی جمہوریہ افغانستان\",\"افغانستان\",\"阿富汗伊斯兰共和国\",\"阿富汗\",\"33,65\",\"1\",\"IRN,PAK,TKM,UZB,TJK,CHN\",\"652230\",\"🇦🇫\",\"Afghan\",\"Afghan\",\"Afghane\",\"Afghan\",\"+93\"\n\"Angola\",\"Republic of Angola\",\".ao\",\"AO\",\"024\",\"AGO\",\"ANG\",\"1\",\"officially-assigned\",\"1\",\"AOA\",\"+2\",\"44\",\"Luanda\",\"AO,República de Angola,ʁɛpublika de an'ɡɔla\",\"Africa\",\"Middle Africa\",\"Portuguese\",\"Angolská republika\",\"Angola\",\"Republik Angola\",\"Angola\",\"Angola Vabariik\",\"Angola\",\"Angolan tasavalta\",\"Angola\",\"République d'Angola\",\"Angola\",\"Republika Angola\",\"Angola\",\"Angola\",\"Angola\",\"Repubblica dell'Angola\",\"Angola\",\"アンゴラ共和国\",\"アンゴラ\",\"앙골라 공화국\",\"앙골라\",\"Republiek Angola\",\"Angola\",\"جمهوری آنگولا\",\"آنگولا\",\"Republika Angoli\",\"Angola\",\"República de Angola\",\"Angola\",\"Республика Ангола\",\"Ангола\",\"Angolská republika\",\"Angola\",\"República de Angola\",\"Angola\",\"Republiken Angola\",\"Angola\",\"جمہوریہ انگولہ\",\"انگولہ\",\"安哥拉共和国\",\"安哥拉\",\"-12.5,18.5\",\"0\",\"COG,COD,ZMB,NAM\",\"1246700\",\"🇦🇴\",\"Angolan\",\"Angolan\",\"Angolaise\",\"Angolais\",\"+244\"\n⋮\n```\n\n### XML\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003ccountries\u003e\n  \u003ccountry name.common=\"Aruba\" name.official=\"Aruba\" name.native.nld.official=\"Aruba\" name.native.nld.common=\"Aruba\" name.native.pap.official=\"Aruba\" name.native.pap.common=\"Aruba\" tld=\".aw\" cca2=\"AW\" ccn3=\"533\" cca3=\"ABW\" cioc=\"ARU\" independent=\"0\" status=\"officially-assigned\" unMember=\"0\" currencies.AWG.name=\"Aruban florin\" currencies.AWG.symbol=\"ƒ\" idd.root=\"+2\" idd.suffixes=\"97\" capital=\"Oranjestad\" altSpellings=\"AW\" region=\"Americas\" subregion=\"Caribbean\" languages.nld=\"Dutch\" languages.pap=\"Papiamento\" translations.ces.official=\"Aruba\" translations.ces.common=\"Aruba\" translations.deu.official=\"Aruba\" translations.deu.common=\"Aruba\" translations.est.official=\"Aruba\" translations.est.common=\"Aruba\" translations.fin.official=\"Aruba\" translations.fin.common=\"Aruba\" translations.fra.official=\"Aruba\" translations.fra.common=\"Aruba\" translations.hrv.official=\"Aruba\" translations.hrv.common=\"Aruba\" translations.hun.official=\"Aruba\" translations.hun.common=\"Aruba\" translations.ita.official=\"Aruba\" translations.ita.common=\"Aruba\" translations.jpn.official=\"アルバ\" translations.jpn.common=\"アルバ\" translations.kor.official=\"아루바\" translations.kor.common=\"아루바\" translations.nld.official=\"Aruba\" translations.nld.common=\"Aruba\" translations.per.official=\"آروبا\" translations.per.common=\"آروبا\" translations.pol.official=\"Aruba\" translations.pol.common=\"Aruba\" translations.por.official=\"Aruba\" translations.por.common=\"Aruba\" translations.rus.official=\"Аруба\" translations.rus.common=\"Аруба\" translations.slk.official=\"Aruba\" translations.slk.common=\"Aruba\" translations.spa.official=\"Aruba\" translations.spa.common=\"Aruba\" translations.swe.official=\"Aruba\" translations.swe.common=\"Aruba\" translations.urd.official=\"اروبا\" translations.urd.common=\"اروبا\" translations.zho.official=\"阿鲁巴\" translations.zho.common=\"阿鲁巴\" latlng=\"12.5,-69.96666666\" landlocked=\"0\" borders=\"\" area=\"180\" flag=\"🇦🇼\" demonyms.eng.f=\"Aruban\" demonyms.eng.m=\"Aruban\" demonyms.fra.f=\"Arubaise\" demonyms.fra.m=\"Arubais\" callingCodes=\"+297\"/\u003e\n  \u003ccountry name.common=\"Afghanistan\" name.official=\"Islamic Republic of Afghanistan\" name.native.prs.official=\"جمهوری اسلامی افغانستان\" name.native.prs.common=\"افغانستان\" name.native.pus.official=\"د افغانستان اسلامي جمهوریت\" name.native.pus.common=\"افغانستان\" name.native.tuk.official=\"Owganystan Yslam Respublikasy\" name.native.tuk.common=\"Owganystan\" tld=\".af\" cca2=\"AF\" ccn3=\"004\" cca3=\"AFG\" cioc=\"AFG\" independent=\"1\" status=\"officially-assigned\" unMember=\"1\" currencies.AFN.name=\"Afghan afghani\" currencies.AFN.symbol=\"؋\" idd.root=\"+9\" idd.suffixes=\"3\" capital=\"Kabul\" altSpellings=\"AF,Afġānistān\" region=\"Asia\" subregion=\"Southern Asia\" languages.prs=\"Dari\" languages.pus=\"Pashto\" languages.tuk=\"Turkmen\" translations.ces.official=\"Afghánská islámská republika\" translations.ces.common=\"Afghánistán\" translations.deu.official=\"Islamische Republik Afghanistan\" translations.deu.common=\"Afghanistan\" translations.est.official=\"Afganistani Islamivabariik\" translations.est.common=\"Afganistan\" translations.fin.official=\"Afganistanin islamilainen tasavalta\" translations.fin.common=\"Afganistan\" translations.fra.official=\"République islamique d'Afghanistan\" translations.fra.common=\"Afghanistan\" translations.hrv.official=\"Islamska Republika Afganistan\" translations.hrv.common=\"Afganistan\" translations.hun.official=\"Afganisztáni Iszlám Köztársaság\" translations.hun.common=\"Afganisztán\" translations.ita.official=\"Repubblica islamica dell'Afghanistan\" translations.ita.common=\"Afghanistan\" translations.jpn.official=\"アフガニスタン・イスラム共和国\" translations.jpn.common=\"アフガニスタン\" translations.kor.official=\"아프가니스탄 이슬람 공화국\" translations.kor.common=\"아프가니스탄\" translations.nld.official=\"Islamitische Republiek Afghanistan\" translations.nld.common=\"Afghanistan\" translations.per.official=\"جمهوری اسلامی افغانستان\" translations.per.common=\"افغانستان\" translations.pol.official=\"Islamska Republika Afganistanu\" translations.pol.common=\"Afganistan\" translations.por.official=\"República Islâmica do Afeganistão\" translations.por.common=\"Afeganistão\" translations.rus.official=\"Исламская Республика Афганистан\" translations.rus.common=\"Афганистан\" translations.slk.official=\"Afgánsky islamský štát\" translations.slk.common=\"Afganistan\" translations.spa.official=\"República Islámica de Afganistán\" translations.spa.common=\"Afganistán\" translations.swe.official=\"Islamiska republiken Afghanistan\" translations.swe.common=\"Afghanistan\" translations.urd.official=\"اسلامی جمہوریہ افغانستان\" translations.urd.common=\"افغانستان\" translations.zho.official=\"阿富汗伊斯兰共和国\" translations.zho.common=\"阿富汗\" latlng=\"33,65\" landlocked=\"1\" borders=\"IRN,PAK,TKM,UZB,TJK,CHN\" area=\"652230\" flag=\"🇦🇫\" demonyms.eng.f=\"Afghan\" demonyms.eng.m=\"Afghan\" demonyms.fra.f=\"Afghane\" demonyms.fra.m=\"Afghan\" callingCodes=\"+93\"/\u003e\n  \u003ccountry name.common=\"Angola\" name.official=\"Republic of Angola\" name.native.por.official=\"República de Angola\" name.native.por.common=\"Angola\" tld=\".ao\" cca2=\"AO\" ccn3=\"024\" cca3=\"AGO\" cioc=\"ANG\" independent=\"1\" status=\"officially-assigned\" unMember=\"1\" currencies.AOA.name=\"Angolan kwanza\" currencies.AOA.symbol=\"Kz\" idd.root=\"+2\" idd.suffixes=\"44\" capital=\"Luanda\" altSpellings=\"AO,República de Angola,ʁɛpublika de an'ɡɔla\" region=\"Africa\" subregion=\"Middle Africa\" languages.por=\"Portuguese\" translations.ces.official=\"Angolská republika\" translations.ces.common=\"Angola\" translations.deu.official=\"Republik Angola\" translations.deu.common=\"Angola\" translations.est.official=\"Angola Vabariik\" translations.est.common=\"Angola\" translations.fin.official=\"Angolan tasavalta\" translations.fin.common=\"Angola\" translations.fra.official=\"République d'Angola\" translations.fra.common=\"Angola\" translations.hrv.official=\"Republika Angola\" translations.hrv.common=\"Angola\" translations.hun.official=\"Angola\" translations.hun.common=\"Angola\" translations.ita.official=\"Repubblica dell'Angola\" translations.ita.common=\"Angola\" translations.jpn.official=\"アンゴラ共和国\" translations.jpn.common=\"アンゴラ\" translations.kor.official=\"앙골라 공화국\" translations.kor.common=\"앙골라\" translations.nld.official=\"Republiek Angola\" translations.nld.common=\"Angola\" translations.per.official=\"جمهوری آنگولا\" translations.per.common=\"آنگولا\" translations.pol.official=\"Republika Angoli\" translations.pol.common=\"Angola\" translations.por.official=\"República de Angola\" translations.por.common=\"Angola\" translations.rus.official=\"Республика Ангола\" translations.rus.common=\"Ангола\" translations.slk.official=\"Angolská republika\" translations.slk.common=\"Angola\" translations.spa.official=\"República de Angola\" translations.spa.common=\"Angola\" translations.swe.official=\"Republiken Angola\" translations.swe.common=\"Angola\" translations.urd.official=\"جمہوریہ انگولہ\" translations.urd.common=\"انگولہ\" translations.zho.official=\"安哥拉共和国\" translations.zho.common=\"安哥拉\" latlng=\"-12.5,18.5\" landlocked=\"0\" borders=\"COG,COD,ZMB,NAM\" area=\"1246700\" flag=\"🇦🇴\" demonyms.eng.f=\"Angolan\" demonyms.eng.m=\"Angolan\" demonyms.fra.f=\"Angolaise\" demonyms.fra.m=\"Angolais\" callingCodes=\"+244\"/\u003e\n⋮\n\u003ccountries\u003e\n```\n\n### YAML\n```yaml\n- { name: { common: Aruba, official: Aruba, native: { nld: { official: Aruba, common: Aruba }, pap: { official: Aruba, common: Aruba } } }, tld: [.aw], cca2: AW, ccn3: '533', cca3: ABW, cioc: ARU, independent: false, status: officially-assigned, unMember: false, currencies: { AWG: { name: 'Aruban florin', symbol: ƒ } }, idd: { root: '+2', suffixes: ['97'] }, capital: [Oranjestad], altSpellings: [AW], region: Americas, subregion: Caribbean, languages: { nld: Dutch, pap: Papiamento }, translations: { ces: { official: Aruba, common: Aruba }, deu: { official: Aruba, common: Aruba }, est: { official: Aruba, common: Aruba }, fin: { official: Aruba, common: Aruba }, fra: { official: Aruba, common: Aruba }, hrv: { official: Aruba, common: Aruba }, hun: { official: Aruba, common: Aruba }, ita: { official: Aruba, common: Aruba }, jpn: { official: アルバ, common: アルバ }, kor: { official: 아루바, common: 아루바 }, nld: { official: Aruba, common: Aruba }, per: { official: آروبا, common: آروبا }, pol: { official: Aruba, common: Aruba }, por: { official: Aruba, common: Aruba }, rus: { official: Аруба, common: Аруба }, slk: { official: Aruba, common: Aruba }, spa: { official: Aruba, common: Aruba }, swe: { official: Aruba, common: Aruba }, urd: { official: اروبا, common: اروبا }, zho: { official: 阿鲁巴, common: 阿鲁巴 } }, latlng: [12.5, -69.96666666], landlocked: false, borders: {  }, area: 180, flag: 🇦🇼, demonyms: { eng: { f: Aruban, m: Aruban }, fra: { f: Arubaise, m: Arubais } }, callingCodes: ['+297'] }\n- { name: { common: Afghanistan, official: 'Islamic Republic of Afghanistan', native: { prs: { official: 'جمهوری اسلامی افغانستان', common: افغانستان }, pus: { official: 'د افغانستان اسلامي جمهوریت', common: افغانستان }, tuk: { official: 'Owganystan Yslam Respublikasy', common: Owganystan } } }, tld: [.af], cca2: AF, ccn3: '004', cca3: AFG, cioc: AFG, independent: true, status: officially-assigned, unMember: true, currencies: { AFN: { name: 'Afghan afghani', symbol: ؋ } }, idd: { root: '+9', suffixes: ['3'] }, capital: [Kabul], altSpellings: [AF, Afġānistān], region: Asia, subregion: 'Southern Asia', languages: { prs: Dari, pus: Pashto, tuk: Turkmen }, translations: { ces: { official: 'Afghánská islámská republika', common: Afghánistán }, deu: { official: 'Islamische Republik Afghanistan', common: Afghanistan }, est: { official: 'Afganistani Islamivabariik', common: Afganistan }, fin: { official: 'Afganistanin islamilainen tasavalta', common: Afganistan }, fra: { official: \"République islamique d'Afghanistan\", common: Afghanistan }, hrv: { official: 'Islamska Republika Afganistan', common: Afganistan }, hun: { official: 'Afganisztáni Iszlám Köztársaság', common: Afganisztán }, ita: { official: \"Repubblica islamica dell'Afghanistan\", common: Afghanistan }, jpn: { official: アフガニスタン・イスラム共和国, common: アフガニスタン }, kor: { official: '아프가니스탄 이슬람 공화국', common: 아프가니스탄 }, nld: { official: 'Islamitische Republiek Afghanistan', common: Afghanistan }, per: { official: 'جمهوری اسلامی افغانستان', common: افغانستان }, pol: { official: 'Islamska Republika Afganistanu', common: Afganistan }, por: { official: 'República Islâmica do Afeganistão', common: Afeganistão }, rus: { official: 'Исламская Республика Афганистан', common: Афганистан }, slk: { official: 'Afgánsky islamský štát', common: Afganistan }, spa: { official: 'República Islámica de Afganistán', common: Afganistán }, swe: { official: 'Islamiska republiken Afghanistan', common: Afghanistan }, urd: { official: 'اسلامی جمہوریہ افغانستان', common: افغانستان }, zho: { official: 阿富汗伊斯兰共和国, common: 阿富汗 } }, latlng: [33, 65], landlocked: true, borders: [IRN, PAK, TKM, UZB, TJK, CHN], area: 652230, flag: 🇦🇫, demonyms: { eng: { f: Afghan, m: Afghan }, fra: { f: Afghane, m: Afghan } }, callingCodes: ['+93'] }\n- { name: { common: Angola, official: 'Republic of Angola', native: { por: { official: 'República de Angola', common: Angola } } }, tld: [.ao], cca2: AO, ccn3: '024', cca3: AGO, cioc: ANG, independent: true, status: officially-assigned, unMember: true, currencies: { AOA: { name: 'Angolan kwanza', symbol: Kz } }, idd: { root: '+2', suffixes: ['44'] }, capital: [Luanda], altSpellings: [AO, 'República de Angola', \"ʁɛpublika de an'ɡɔla\"], region: Africa, subregion: 'Middle Africa', languages: { por: Portuguese }, translations: { ces: { official: 'Angolská republika', common: Angola }, deu: { official: 'Republik Angola', common: Angola }, est: { official: 'Angola Vabariik', common: Angola }, fin: { official: 'Angolan tasavalta', common: Angola }, fra: { official: \"République d'Angola\", common: Angola }, hrv: { official: 'Republika Angola', common: Angola }, hun: { official: Angola, common: Angola }, ita: { official: \"Repubblica dell'Angola\", common: Angola }, jpn: { official: アンゴラ共和国, common: アンゴラ }, kor: { official: '앙골라 공화국', common: 앙골라 }, nld: { official: 'Republiek Angola', common: Angola }, per: { official: 'جمهوری آنگولا', common: آنگولا }, pol: { official: 'Republika Angoli', common: Angola }, por: { official: 'República de Angola', common: Angola }, rus: { official: 'Республика Ангола', common: Ангола }, slk: { official: 'Angolská republika', common: Angola }, spa: { official: 'República de Angola', common: Angola }, swe: { official: 'Republiken Angola', common: Angola }, urd: { official: 'جمہوریہ انگولہ', common: انگولہ }, zho: { official: 安哥拉共和国, common: 安哥拉 } }, latlng: [-12.5, 18.5], landlocked: false, borders: [COG, COD, ZMB, NAM], area: 1246700, flag: 🇦🇴, demonyms: { eng: { f: Angolan, m: Angolan }, fra: { f: Angolaise, m: Angolais } }, callingCodes: ['+244'] }\n```\n\n## Customising the output\nThe data files provided in the `dist` directory include all available fields, but is also possible to build a custom version of the data with certain fields excluded.\n\nTo do this, you will first need a working PHP installation, [composer](https://getcomposer.org) and a local copy of this repository. Once you have these, open a terminal in your local version of this project's root directory and run this command to install the necessary dependencies:\n\n```sh\ncomposer install\n```\n\nAfter this finishes, run the following command (here we will exclude the `tld` field from the output, but you can exclude any field you want):\n\n```sh\nphp countries.php convert --exclude-field=tld\n```\n\nYou can also exclude multiple fields:\n\n```sh\nphp countries.php convert --exclude-field=tld --exclude-field=cca2\n\n# Or using the shorter `-x` syntax:\nphp countries.php convert -x tld -x cca2\n```\n\nIf you prefer to include only some fields (this can not be combined with `--exclude-field`):\n\n```sh\nphp countries.php convert --include-field=name --include-field=area\n\n# or using the shorter `-i` syntax:\nphp countries.php convert -i name -i area\n```\n\nThe generated files are put into the `dist` directory, but you can change this to another existing directory:\n\n```sh\nmkdir foobar\nphp countries.php convert --output-dir=foobar\n```\n\nYou can also choose to only generate some of the output formats:\n\n```sh\nmkdir foobar\nphp countries.php convert --format=json_unescaped --format=csv\n\n# or using the shorter `-f` syntax:\nphp countries.php convert -f json_unescaped -f csv\n```\n\n\n## Showcase\nProjects using this dataset:\n\n- [REST Countries](https://restcountries.eu/)\n- [International Telephone Input](https://intl-tel-input.com/)\n- [Telephone JS](https://github.com/lukaswhite/telephones-js)\n- [Countries of the World](http://countries.petethompson.net/)\n- [Country Prefix Codes For Go](https://github.com/relops/prefixes)\n- [Country Info Mapper in Go](https://github.com/pirsquare/country-mapper)\n- [Visa requirements in JSON](https://github.com/StrudelInc/visas2)\n- [Country picker modal for React Native](https://github.com/xcarpentier/react-native-country-picker-modal)\n- [Agnostic Virtual Assistant](https://github.com/ava-ia/core)\n\n## How to contribute?\nPlease refer to [CONTRIBUTING](https://github.com/mledoze/countries/blob/master/CONTRIBUTING.md).\n\n## To do\n - add the type of the country (country, sovereign state, public body, territory, etc.)\n - pull in data automatically from CLDR at build time (idea from @Munter, see #108)\n\n## Sources\nhttps://www.currency-iso.org/ for currency codes.\n\nRegion and subregion are taken from https://github.com/hexorx/countries.\n\nGeoJSON outlines come from http://thematicmapping.org/downloads/world_borders.php.\n\nThe rest comes from Wikipedia.\n\n## Credits\nThanks to:\n - @Glazz for his help with country calling codes\n - @hexorx for his work (https://github.com/hexorx/countries)\n - @frederik-jacques for the capital cities\n - @fayer for the population, geolocation, demonym and area data\n - @ancosen for his help with the borders data\n - @herrjemand for country names and various fixes\n - all the contributors: https://github.com/mledoze/countries/graphs/contributors\n\n## License\nSee [LICENSE](https://github.com/mledoze/countries/blob/master/LICENSE).\n\nFlags are not licensed under the ODbL license; see \u003chttps://en.wikipedia.org/wiki/Wikipedia:Copyright_on_emblems\u003e for more information.\n","funding_links":[],"categories":["PHP","World Data (Countries, Cities, etc.)","Datasets","类库","Other"],"sub_categories":["More","未归类"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmledoze%2Fcountries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmledoze%2Fcountries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmledoze%2Fcountries/lists"}