Download the PHP package prophet777/countries without Composer

On this page you can find all versions of the php package prophet777/countries. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package countries

World countries in JSON, CSV, XML and YAML.

Latest Stable Version Latest Stable Version License Downloads Build Status PHP from Packagist

Countries data

This repository contains lists of world countries in JSON, CSV and XML. Each line contains the country:

Additional data

The data folder contains additional data such as the countries GeoJSON outlines and flags in SVG format.

Examples

JSON
GeoJSON and TopoJSON outlines

See an example for Germany: GeoJSON or TopoJSON.

CSV
XML
YAML

Customising the output

The 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.

To do this, you will first need a working PHP installation, composer 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:

After this finishes, run the following command (here we will exclude the tld field from the output, but you can exclude any field you want):

You can also exclude multiple fields:

If you prefer to include only some fields (this can not be combined with --exclude-field):

The generated files are put into the dist directory, but you can change this to another existing directory:

You can also choose to only generate some of the output formats:

Showcase

Projects using this dataset:

How to contribute?

Please refer to CONTRIBUTING.

To do

Sources

https://www.currency-iso.org/ for currency codes.

Region and subregion are taken from https://github.com/hexorx/countries.

GeoJSON outlines come from http://thematicmapping.org/downloads/world_borders.php.

The rest comes from Wikipedia.

Credits

Thanks to:

License

See LICENSE.


All versions of countries with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.33
symfony/console Version ^2.8|^3.4|~4.0
symfony/yaml Version ^2.8|^3.4|~4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package prophet777/countries contains the following files

Collapse All

ci

  test.sh

dist

  README.md
  countries-unescaped.json
  countries.csv
  countries.json
  countries.xml
  countries.yml

data

  nic.topo.json
  niu.geo.json
  niu.svg
  niu.topo.json
  nld.geo.json
  nld.svg
  nld.topo.json
  nor.geo.json
  nor.svg
  npl.geo.json
  nor.topo.json
  npl.svg
  npl.topo.json
  nru.geo.json
  nru.svg
  nru.topo.json
  nzl.geo.json
  nzl.svg
  nzl.topo.json
  omn.geo.json
  nic.svg
  nga.topo.json
  nic.geo.json
  nam.topo.json
  mwi.topo.json
  mys.geo.json
  mys.svg
  mys.topo.json
  myt.geo.json
  myt.svg
  myt.topo.json
  nam.geo.json
  nam.svg
  ncl.geo.json
  nga.svg
  ncl.svg
  ncl.topo.json
  ner.geo.json
  ner.svg
  ner.topo.json
  nfk.geo.json
  nfk.svg
  nfk.topo.json
  nga.geo.json
  omn.svg
  omn.topo.json
  pak.geo.json
  pry.svg
  pri.topo.json
  prk.geo.json
  prk.svg
  prk.topo.json
  prt.geo.json
  prt.svg
  prt.topo.json
  pry.geo.json
  pry.topo.json
  pri.geo.json
  pse.geo.json
  pse.svg
  pse.topo.json
  pyf.geo.json
  pyf.svg
  pyf.topo.json
  qat.geo.json
  qat.svg
  qat.topo.json
  pri.svg
  pol.topo.json
  pak.svg
  per.topo.json
  pak.topo.json
  pan.geo.json
  pan.svg
  pan.topo.json
  pcn.geo.json
  pcn.svg
  pcn.topo.json
  per.geo.json
  per.svg
  phl.geo.json
  pol.svg
  phl.svg
  phl.topo.json
  plw.geo.json
  plw.svg
  plw.topo.json
  png.geo.json
  png.svg
  png.topo.json
  pol.geo.json
  mwi.svg
  mwi.geo.json
  mus.topo.json
  maf.geo.json
  lux.svg
  lux.topo.json
  lva.geo.json
  lva.svg
  lva.topo.json
  mac.geo.json
  mac.svg
  mac.topo.json
  maf.svg
  ltu.topo.json
  maf.topo.json
  mar.geo.json
  mar.svg
  mar.topo.json
  mco.geo.json
  mco.svg
  mco.topo.json
  mda.geo.json
  mda.svg
  lux.geo.json
  ltu.svg
  mdg.geo.json
  lca.svg
  lbn.svg
  lbn.topo.json
  lbr.geo.json
  lbr.svg
  lbr.topo.json
  lby.geo.json
  lby.svg
  lby.topo.json
  lca.geo.json
  lca.topo.json
  ltu.geo.json
  lie.geo.json
  lie.svg
  lie.topo.json
  lka.geo.json
  lka.svg
  lka.topo.json
  lso.geo.json
  lso.svg
  lso.topo.json
  mda.topo.json
  mdg.svg
  mus.svg
  moz.topo.json
  mng.geo.json
  mng.svg
  mng.topo.json
  mnp.geo.json
  mnp.svg
  mnp.topo.json
  moz.geo.json
  moz.svg
  mrt.geo.json
  mne.svg
  mrt.svg
  mrt.topo.json
  msr.geo.json
  msr.svg
  msr.topo.json
  mtq.geo.json
  mtq.svg
  mtq.topo.json
  mus.geo.json
  mne.topo.json
  mne.geo.json
  mdg.topo.json
  mkd.geo.json
  mdv.geo.json
  mdv.svg
  mdv.topo.json
  mex.geo.json
  mex.svg
  mex.topo.json
  mhl.geo.json
  mhl.svg
  mhl.topo.json
  mkd.svg
  mmr.topo.json
  mkd.topo.json
  mli.geo.json
  mli.svg
  mli.topo.json
  mlt.geo.json
  mlt.svg
  mlt.topo.json
  mmr.geo.json
  mmr.svg
  reu.geo.json
  reu.svg
  reu.topo.json
  uga.svg
  tuv.topo.json
  twn.geo.json
  twn.svg
  twn.topo.json
  tza.geo.json
  tza.svg
  tza.topo.json
  uga.geo.json
  uga.topo.json
  tuv.geo.json
  ukr.geo.json
  ukr.svg
  ukr.topo.json
  umi.geo.json
  umi.svg
  umi.topo.json
  unk.geo.json
  unk.svg
  unk.topo.json
  tuv.svg
  tur.topo.json
  ury.svg
  tls.topo.json
  tjk.topo.json
  tkl.geo.json
  tkl.svg
  tkl.topo.json
  tkm.geo.json
  tkm.svg
  tkm.topo.json
  tls.geo.json
  tls.svg
  ton.geo.json
  tur.svg
  ton.svg
  ton.topo.json
  tto.geo.json
  tto.svg
  tto.topo.json
  tun.geo.json
  tun.svg
  tun.topo.json
  tur.geo.json
  ury.geo.json
  ury.topo.json
  tjk.geo.json
  yem.geo.json
  vut.svg
  vut.topo.json
  wlf.geo.json
  wlf.svg
  wlf.topo.json
  wsm.geo.json
  wsm.svg
  wsm.topo.json
  yem.svg
  vnm.topo.json
  yem.topo.json
  zaf.geo.json
  zaf.svg
  zaf.topo.json
  zmb.geo.json
  zmb.svg
  zmb.topo.json
  zwe.geo.json
  zwe.svg
  vut.geo.json
  vnm.svg
  usa.geo.json
  vct.svg
  usa.svg
  usa.topo.json
  uzb.geo.json
  uzb.svg
  uzb.topo.json
  vat.geo.json
  vat.svg
  vat.topo.json
  vct.geo.json
  vct.topo.json
  vnm.geo.json
  ven.geo.json
  ven.svg
  ven.topo.json
  vgb.geo.json
  vgb.svg
  vgb.topo.json
  vir.geo.json
  vir.svg
  vir.topo.json
  tjk.svg
  tha.topo.json
  rou.geo.json
  sle.geo.json
  shn.svg
  shn.topo.json
  sjm.geo.json
  sjm.svg
  sjm.topo.json
  slb.geo.json
  slb.svg
  slb.topo.json
  sle.svg
  sgs.topo.json
  sle.topo.json
  slv.geo.json
  slv.svg
  slv.topo.json
  smr.geo.json
  smr.svg
  smr.topo.json
  som.geo.json
  som.svg
  shn.geo.json
  sgs.svg
  spm.geo.json
  sau.svg
  rou.svg
  rou.topo.json
  rus.geo.json
  rus.svg
  rus.topo.json
  rwa.geo.json
  rwa.svg
  rwa.topo.json
  sau.geo.json
  sau.topo.json
  sgs.geo.json
  sdn.geo.json
  sdn.svg
  sdn.topo.json
  sen.geo.json
  sen.svg
  sen.topo.json
  sgp.geo.json
  sgp.svg
  sgp.topo.json
  som.topo.json
  spm.svg
  tha.svg
  syr.topo.json
  sxm.geo.json
  sxm.svg
  sxm.topo.json
  syc.geo.json
  syc.svg
  syc.topo.json
  syr.geo.json
  syr.svg
  tca.geo.json
  swz.svg
  tca.svg
  tca.topo.json
  tcd.geo.json
  tcd.svg
  tcd.topo.json
  tgo.geo.json
  tgo.svg
  tgo.topo.json
  tha.geo.json
  swz.topo.json
  swz.geo.json
  spm.topo.json
  sur.geo.json
  srb.geo.json
  srb.svg
  srb.topo.json
  ssd.geo.json
  ssd.svg
  ssd.topo.json
  stp.geo.json
  stp.svg
  stp.topo.json
  sur.svg
  swe.topo.json
  sur.topo.json
  svk.geo.json
  svk.svg
  svk.topo.json
  svn.geo.json
  svn.svg
  svn.topo.json
  swe.geo.json
  swe.svg
  lbn.geo.json
  lao.topo.json
  lao.svg
  chl.geo.json
  can.svg
  can.topo.json
  cck.geo.json
  cck.svg
  cck.topo.json
  che.geo.json
  che.svg
  che.topo.json
  chl.svg
  caf.topo.json
  chl.topo.json
  chn.geo.json
  chn.svg
  chn.topo.json
  civ.geo.json
  civ.svg
  civ.topo.json
  cmr.geo.json
  cmr.svg
  can.geo.json
  caf.svg
  cod.geo.json
  brn.svg
  bol.svg
  bol.topo.json
  bra.geo.json
  bra.svg
  bra.topo.json
  brb.geo.json
  brb.svg
  brb.topo.json
  brn.geo.json
  brn.topo.json
  caf.geo.json
  btn.geo.json
  btn.svg
  btn.topo.json
  bvt.geo.json
  bvt.svg
  bvt.topo.json
  bwa.geo.json
  bwa.svg
  bwa.topo.json
  cmr.topo.json
  cod.svg
  bmu.topo.json
  cyp.topo.json
  cxr.geo.json
  cxr.svg
  cxr.topo.json
  cym.geo.json
  cym.svg
  cym.topo.json
  cyp.geo.json
  cyp.svg
  cze.geo.json
  cuw.svg
  cze.svg
  cze.topo.json
  deu.geo.json
  deu.svg
  deu.topo.json
  dji.geo.json
  dji.svg
  dji.topo.json
  dma.geo.json
  cuw.topo.json
  cuw.geo.json
  cod.topo.json
  com.geo.json
  cog.geo.json
  cog.svg
  cog.topo.json
  cok.geo.json
  cok.svg
  cok.topo.json
  col.geo.json
  col.svg
  col.topo.json
  com.svg
  cub.topo.json
  com.topo.json
  cpv.geo.json
  cpv.svg
  cpv.topo.json
  cri.geo.json
  cri.svg
  cri.topo.json
  cub.geo.json
  cub.svg
  bol.geo.json
  bmu.svg
  dma.topo.json
  asm.topo.json
  arg.geo.json
  arg.svg
  arg.topo.json
  arm.geo.json
  arm.svg
  arm.topo.json
  asm.geo.json
  asm.svg
  ata.geo.json
  are.svg
  ata.svg
  ata.topo.json
  atf.geo.json
  atf.svg
  atf.topo.json
  atg.geo.json
  atg.svg
  atg.topo.json
  aus.geo.json
  are.topo.json
  are.geo.json
  aus.topo.json
  aia.geo.json
  abw.geo.json
  abw.svg
  abw.topo.json
  afg.geo.json
  afg.svg
  afg.topo.json
  ago.geo.json
  ago.svg
  ago.topo.json
  aia.svg
  and.topo.json
  aia.topo.json
  ala.geo.json
  ala.svg
  ala.topo.json
  alb.geo.json
  alb.svg
  alb.topo.json
  and.geo.json
  and.svg
  aus.svg
  aut.geo.json
  bmu.geo.json
  bih.svg
  bgr.topo.json
  bhr.geo.json
  bhr.svg
  bhr.topo.json
  bhs.geo.json
  bhs.svg
  bhs.topo.json
  bih.geo.json
  bih.topo.json
  bgr.geo.json
  blm.geo.json
  blm.svg
  blm.topo.json
  blr.geo.json
  blr.svg
  blr.topo.json
  blz.geo.json
  blz.svg
  blz.topo.json
  bgr.svg
  bgd.topo.json
  aut.svg
  bel.topo.json
  aut.topo.json
  aze.geo.json
  aze.svg
  aze.topo.json
  bdi.geo.json
  bdi.svg
  bdi.topo.json
  bel.geo.json
  bel.svg
  ben.geo.json
  bgd.svg
  ben.svg
  ben.topo.json
  bes.geo.json
  bes.svg
  bes.topo.json
  bfa.geo.json
  bfa.svg
  bfa.topo.json
  bgd.geo.json
  dma.svg
  dnk.geo.json
  lao.geo.json
  ind.topo.json
  idn.geo.json
  idn.svg
  idn.topo.json
  imn.geo.json
  imn.svg
  imn.topo.json
  ind.geo.json
  ind.svg
  iot.geo.json
  hun.svg
  iot.svg
  iot.topo.json
  irl.geo.json
  irl.svg
  irl.topo.json
  irn.geo.json
  irn.svg
  irn.topo.json
  irq.geo.json
  hun.topo.json
  hun.geo.json
  irq.topo.json
  hmd.geo.json
  gum.geo.json
  gum.svg
  gum.topo.json
  guy.geo.json
  guy.svg
  guy.topo.json
  hkg.geo.json
  hkg.svg
  hkg.topo.json
  hmd.svg
  hti.topo.json
  hmd.topo.json
  hnd.geo.json
  hnd.svg
  hnd.topo.json
  hrv.geo.json
  hrv.svg
  hrv.topo.json
  hti.geo.json
  hti.svg
  irq.svg
  isl.geo.json
  guf.svg
  kir.svg
  ken.topo.json
  kgz.geo.json
  kgz.svg
  kgz.topo.json
  khm.geo.json
  khm.svg
  khm.topo.json
  kir.geo.json
  kir.topo.json
  ken.geo.json
  kna.geo.json
  kna.svg
  kna.topo.json
  kor.geo.json
  kor.svg
  kor.topo.json
  kwt.geo.json
  kwt.svg
  kwt.topo.json
  ken.svg
  kaz.topo.json
  isl.svg
  jam.topo.json
  isl.topo.json
  isr.geo.json
  isr.svg
  isr.topo.json
  ita.geo.json
  ita.svg
  ita.topo.json
  jam.geo.json
  jam.svg
  jey.geo.json
  kaz.svg
  jey.svg
  jey.topo.json
  jor.geo.json
  jor.svg
  jor.topo.json
  jpn.geo.json
  jpn.svg
  jpn.topo.json
  kaz.geo.json
  guf.topo.json
  guf.geo.json
  dnk.svg
  fji.svg
  est.topo.json
  eth.geo.json
  eth.svg
  eth.topo.json
  fin.geo.json
  fin.svg
  fin.topo.json
  fji.geo.json
  fji.topo.json
  est.geo.json
  flk.geo.json
  flk.svg
  flk.topo.json
  fra.geo.json
  fra.svg
  fra.topo.json
  fro.geo.json
  fro.svg
  fro.topo.json
  est.svg
  esp.topo.json
  fsm.svg
  ecu.topo.json
  dnk.topo.json
  dom.geo.json
  dom.svg
  dom.topo.json
  dza.geo.json
  dza.svg
  dza.topo.json
  ecu.geo.json
  ecu.svg
  egy.geo.json
  esp.svg
  egy.svg
  egy.topo.json
  eri.geo.json
  eri.svg
  eri.topo.json
  esh.geo.json
  esh.svg
  esh.topo.json
  esp.geo.json
  fsm.geo.json
  fsm.topo.json
  gtm.topo.json
  grc.geo.json
  gmb.svg
  gmb.topo.json
  gnb.geo.json
  gnb.svg
  gnb.topo.json
  gnq.geo.json
  gnq.svg
  gnq.topo.json
  grc.svg
  glp.topo.json
  grc.topo.json
  grd.geo.json
  grd.svg
  grd.topo.json
  grl.geo.json
  grl.svg
  grl.topo.json
  gtm.geo.json
  gtm.svg
  gmb.geo.json
  glp.svg
  gab.geo.json
  ggy.svg
  gab.svg
  gab.topo.json
  gbr.geo.json
  gbr.svg
  gbr.topo.json
  geo.geo.json
  geo.svg
  geo.topo.json
  ggy.geo.json
  ggy.topo.json
  glp.geo.json
  gha.geo.json
  gha.svg
  gha.topo.json
  gib.geo.json
  gib.svg
  gib.topo.json
  gin.geo.json
  gin.svg
  gin.topo.json
  zwe.topo.json

src

   MLD

     Console
     Converter
README.md
bower.json
LICENSE
CONTRIBUTING.md
composer.lock
countries.json
countries.php
.travis.yml
.gitignore
index.js
package.json
composer.json