Access multilingual country lists
masterAll data formats are available in multiple languages. You can find the full list of supported languages in the
data directory of the repository.repository·master·Indexed 26 days ago
https://github.com/umpirsky/country-listA repository providing lists of all countries with their names and ISO 3166-1 codes. Data is available in multiple languages and formats, including JSON, YAML, XML, HTML, CSV, SQL, PHP, and XLIFF. The package can be installed via Composer or rebuilt using a PHP CLI build script and Docker Compose.
data directory of the repository.If you are contributing patches, adding new formats, or updating the data source, you can rebuild the list using Docker Compose.
$ docker-compose run php /var/www/html/bin/build -vInstall the country-list package using Composer to get access to country names and ISO 3166-1 codes in various formats.
composer require umpirsky/country-listThe country list is provided in the following formats:
bin/build script is a PHP CLI entrypoint used to generate country list files in various formats. It uses the Umpirsky\ListGenerator library to import country data and build the final output files. To execute the build process, run the script using the PHP interpreter from the repository root.