2017 © Pedro Peláez
 

library world-data

Countries and languages names and codes.

image

parziphal/world-data

Countries and languages names and codes.

  • Monday, September 26, 2016
  • by Pop
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Countries and languages

List of countries and languages, in english. Countries have their corresponding ISO 2, ISO 3 and ISO Numeric codes; languages have their corresponding ISO 639-1 codes., (*1)

There are two classes under the Parziphal\WorldData namespace: Languages and Countries. These can be used to get the data of each resource, and to optionally customize it:, (*2)

use Parziphal\WorldData\Countries;

// Get all data columns
$countries = Countries::get();

// Get only country names
$countries = Countries::get(['name']);

// Get both "names" and "iso_code_2" columns, and change "iso_code_2" column name to just "iso"
$countries = Countries::get(['name', 'iso_code_2' => 'iso']);

Credits

  • Country taken from http://www.nationsonline.org/oneworld/country_code_list.htm
  • Languages taken from https://raw.githubusercontent.com/datasets/language-codes/master/data/language-codes.csv

License

MIT, (*3)

The Versions

26/09 2016

dev-master

9999999-dev

Countries and languages names and codes.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

26/09 2016

v0.2

0.2.0.0

Countries and languages names and codes.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

01/05 2016

v0.1

0.1.0.0

Countries and languages names and codes.

  Sources   Download

MIT

The Requires

  • php >=5.4