:globe_with_meridians: List of all countries with names and ISO 3166-1 codes in all languages and data formats.

Overview

symfony upgrade fixertwig gettext extractorwisdomcentipedepermissions handlerextraloadgravatarlocurrocountry listtransliterator

Country List

List of all countries with names and ISO 3166-1 codes in all languages and all data formats.

Formats Available

  • Text
  • JSON
  • YAML
  • XML
  • HTML
  • CSV
  • SQL
    • MySQL
    • PostgreSQL
    • SQLite
  • PHP
  • XLIFF

If you intend to use the package with PHP see this.

Multilingual

All formats are also available in multiple languages, please find full language list here.

Build

Country list is available out of the box, but if you want to submit patches, add new formats, update data source or contribute in any other way, you will probably want to rebuild the list:

$ docker-compose run php /var/www/html/bin/build -v

Other Interesting Lists

Comments
  • how to use

    how to use

    Hi,

    Thanks for this. What's the proper way to use these in any project? As it's just lists and no actual classes, I'm not entirely sure how to use them? Or am I missing something?

    David.

    opened by denjaland 12
  • Using this package in PHP/Composer

    Using this package in PHP/Composer

    I'm not sure how this is supposed to be used with Composer. I don't think there is a reliable way to get the location (directory) of the data.

    The simplest way around this is with an auto-loaded class that can return the directory the data is located. Would you accept a PR with this addition?

    Edit: See my fork.

    opened by MidnightDesign 8
  • Watch out USSR in the list!

    Watch out USSR in the list!

    Union of Soviet Socialist Republics... you are kidding!

    Thanks for snippet but after this (USSR) I will need to check each country if it is not a joke.

    opened by igsm 8
  • Class 'Locale' not found

    Class 'Locale' not found

    $ ./console build

    Fatal error: Class 'Locale' not found in /home/gadelat/tmp/country-list/vendor/symfony/locale/Symfony/Component/Locale/Locale.php on line 15

    opened by ostrolucky 8
  • Why requirements are PHP > 7.1 and not 7.0 ?

    Why requirements are PHP > 7.1 and not 7.0 ?

    Hey I have a regular Ubuntu stable release and I can't update your package because of PHP requirements. Is there a reason why 7.1 and not 7.0 ? Thanks

    opened by hugsbrugs 7
  • Finishing PHP country helper

    Finishing PHP country helper

    Hey @umpirsky

    I've finished the staled PR #99 by adding the requested exception for the file loader. Let me know if you need anything else.

    Cheers, Peter

    opened by spekulatius 6
  • [Proposal] One file with each country it its own language

    [Proposal] One file with each country it its own language

    Fx.

    If I had chosen russia, I would not be able to find my own country again.

    So I would say it would be nice to have 1 file, with each country it is own language.

    Fx Germany = Deutschland Mexico = Mexicanos Denmark = Danmark Russia = Российская

    maybe put it in country/general/country.*

    enhancement 
    opened by lsv 5
  • composer PHP requirements fails on PHP7

    composer PHP requirements fails on PHP7

    In your composer file you are using ~5.4, which causes composer to fail when using PHP7. I assume there is not reason that the package should not be used on PHP7? If not I suggest to change to >=5.4

    Error when running composer:

    umpirsky/country-list dev-master requires php ~5.4 -> your PHP version (7.0.2) does not satisfy that requirement

    opened by stadskle 4
  • Missing countries for French language

    Missing countries for French language

    Hello, there are 4 missing countries in French version

    BQ => Bonaire, Saint-Eustache et Saba CW => Curaçao SS => Sud Soudan SX => Sint Maarten

    Thanks

    opened by caouecs 4
  • Adding country codes as well.

    Adding country codes as well.

    This is a very good resource. It can be used for Registration forms and other purposes. It would be very good, if the country calling codes could be as well added to this list.

    Moreover, a string-array format for Android XML would be very good as well.

    opened by openrijal 4
  • Tag a release in master branch

    Tag a release in master branch

    I have written a library that depends on country-list through composer and packagist. Now because there is no tagged release of country-list all projects that depend on my library must add "minimum-stability": "dev" to their composer.json.

    Adding a tag would solve this for me. Hope it's not to much trubble...

    opened by hanneskod 4
  • NPM package removed due to malicious code

    NPM package removed due to malicious code

    The NPM package (https://www.npmjs.com/package/@umpirsky/country-list) was removed because it apparently "contained malicious code". Clicking the link for more information on that page just gives a 404 though, so I couldn't find any more details. Does anyone know why this happened or if the package will ever be added back to NPM?

    opened by mogzol 1
  • How to contribute?

    How to contribute?

    Since my raised issue on #115 seems not going anywhere I decided by myself to contribute.

    But the readme isn't very detailed to how the countries list is generated.

    Can you please update the readme.md?

    Thank you

    opened by Messhias 3
  • Add UK alias for United Kingdom in the country list.

    Add UK alias for United Kingdom in the country list.

    The United Kingdom in the most of countries around the is known as the UK as well.

    But the UK it's a standard for the whole EU and some other countries in the Asia and middle-east (e.g. India, United Arab Emirates, and most countries was a UK colony in the history).

    opened by Messhias 10
  • Use UTF-8 for JSON

    Use UTF-8 for JSON

    The year is 2019, those refusing to use anything but ASCII should be the one to suffer, not the 99% of people whose systems are able to handle UTF-8. So instead of escaping all non ASCII characters on the data, they really should be just in plain, pretty, readable UTF-8.

    One might also consider pretty printing the json data.

    opened by Huulivoide 1
  • JSON is kind of useless unless it has proper key/values

    JSON is kind of useless unless it has proper key/values

    With JS frameworks, and more generally REST APIs/HTTP requests, the current JSON structures are not much help, since we can't programmatically target keys.

    How about this structure?

    [
        { 
            id: 'AF', 
            value:'Afghanistan' 
        },
        {
            id: 'ZA', 
            value:'Afrique du Sud' 
        },
    ...
    ]
    
    enhancement 
    opened by bonatoc 8
  • Add a license in README

    Add a license in README

    Hi, I didn't found the the license explanation at your README file. I just found it on your composer file. Can you add your MIT license explanation on it? maybe just some enhancement to make us more clearly to understand. Thank you.

    opened by mnafian 0
Owner
Saša Stamenković
Saša Stamenković
A PHP library providing ISO 3166-1 data

league/iso3166 A PHP library providing ISO 3166-1 data. What is ISO 3166-1 ISO 3166-1 is part of the ISO 3166 standard published by the International

The League of Extraordinary Packages 555 Dec 21, 2022
World countries - available in multiple languages, in CSV, JSON, PHP, SQL and XML formats

Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP, SQL and XML formats, in multiple languages and with national flags included; also available are the ISO 3166-2 codes of provinces/ states associated with the countries

Stefan Gabos 1k Dec 29, 2022
YCOM Impersonate. Login as selected YCOM user 🧙‍♂️in frontend.

YCOM Impersonate Login as selected YCOM user in frontend. Features: Backend users with admin rights or YCOM[] rights, can be automatically logged in v

Friends Of REDAXO 17 Sep 12, 2022
📦 "PHP type names" contains the list of constants for the available PHP data types.

PHP type names PHP type names ?? Description Simple library containing the list of constants for the available PHP data types. Use those constant type

♚ PH⑦ de Soria™♛ 4 Dec 15, 2022
🌐 A minimalist languages library that made plugins support multiple languages.

libLanguages · libLanguages is a PocketMine-MP library for making plugins support multiple languages. Easy To Learn: Just declare it in onEnable() fun

thebigcrafter 1 May 1, 2022
Import data from and export data to a range of different file formats and media

Ddeboer Data Import library This library has been renamed to PortPHP and will be deprecated. Please use PortPHP instead. Introduction This PHP library

David de Boer 570 Dec 27, 2022
This AddOn allows you to search for module names when adding a block

Modulsuche und Modulvorschau für REDAXO 5 Dieses AddOn ermöglicht die Suche nach Modulnamen, wenn man einen Block hinzufügt. Dies kann sehr hilfreich

Friends Of REDAXO 15 Nov 30, 2022
A comprehensive library for generating differences between two strings in multiple formats (unified, side by side HTML etc). Based on the difflib implementation in Python

PHP Diff Class Introduction A comprehensive library for generating differences between two hashable objects (strings or arrays). Generated differences

Chris Boulton 708 Dec 25, 2022
This package is used to validate the telephone numbers of the countries taken into account. It also makes it possible to verify that a number is indeed a number of an operator X

phone-number-checker This package is used to validate the telephone numbers of the countries taken into account. It also makes it possible to verify t

faso-dev 4 Feb 7, 2022
Helper for countries laravel package

Countries helper Helper for countries laravel package Installation You can install the package via composer: composer require eliseekn/countries-helpe

Kouadio Elisée N'GUESSAN 1 Oct 15, 2021
This repository contains academic codes from experiments and labs I did during my academic years.

Table Of Content Semester 3 Business Communication Skills Computer Graphics Digital Electronics and Logic Design Fundamentals of Data Structures Human

Pratik Pingale 13 Nov 29, 2022
A collection of useful codes and utilities for WordPress plugin development..

WordPress Utils A collection of useful codes and utilities for WordPress plugin development. These simplifies common tasks and promote code reusabilit

weDevs 5 Jun 9, 2023
Verify purchase codes right on your WordPress dashboard.

envato-purchase-code-widget Verify purchase codes right on your WordPress dashboard. Install the plugin Go to Settings->EPCW and enter your "Envato AP

null 6 Oct 28, 2021
A PHP web interface for scanning ISBN book codes, identify books with Antolin reading promotion offer

Ein PHP-Webinterface zum Scannen von ISBN-Buchcodes, identifiziere Bücher mit Antolin-Leseförderungs-Angebot. Einfache Installation. Für Mitarbeiter*innen in Schulbüchereien.

null 2 May 20, 2022
This project is very diverse and based upon many languages and libraries such as C++, Python, JavaScript, PHP and MQTT

ADMS-Real-time-project This project is very diverse and based upon many languages and libraries such as C++, Python, JavaScript, PHP and MQTT Advance_

Nitya parikh 1 Dec 1, 2021
Melek Berita Backend is a service for crawling data from various websites and processing the data to be used for news data needs.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Chacha Nurholis 2 Oct 9, 2022
Learning design patterns by implementing them in various programming languages.

design-patterns Learning design patterns by implementing them in various programming languages. Creational design patterns Creational design patterns

Paweł Tryfon 1 Dec 13, 2021
Languages for your website.

Deutsch English Svenska Language 0.8.33 Languages for your website. How to make a translation Start with the English language file or one of the avail

Anna 1 Oct 29, 2022
Parse your humble choice / monthly data and compile a CSV list for better overview

humbleparser Parse your humble choice / monthly data and compile a CSV list for better overview Requirements PHP CLI (>= 7.4)) php-curl Note I have ne

null 1 May 4, 2022