openclerk / country-list
List of all countries with names and ISO 3166-1 codes in many languages and data formats
Installs: 7 243
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Language:HTML
Requires (Dev)
- umpirsky/country-list: dev-master
This package is auto-updated.
Last update: 2024-10-14 10:29:07 UTC
README
List of all countries with names and ISO 3166-1 codes in many languages and many data formats.
This uses all of the ICU data from umpirsky/country-list but reduces the size of the component by:
- Not including language dialects (e.g. just
en
rather thanen_GB
,en_AU
,en_NZ
, ...) - Only including ISO 639-1 languages, which covers the world major's languages
- Not including CLDR data, which includes country codes such as
Unknown or Invalid Region (ZZ)
Installing
Include openclerk/country-list
as a requirement in your project composer.json
,
and run composer update
to install it into your project:
{ "require": { "openclerk/country-list": "~1.0" } }
You can then import the files through a number of different ways, e.g.
require(__DIR__ . "/vendor/openclerk/country-list/country/en/country.txt");
Building
Building requires composer
and grunt
:
npm install
composer update
grunt