# stefangabos/world_countries

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

Repository: https://github.com/stefangabos/world_countries
Canonical: https://ross.abutalabs.com/products/world_countries
Homepage: http://stefangabos.github.io/world_countries/
Language: PHP
License: CC-BY-SA-4.0
License Family: other
Topics: countries, flags, mysql, national-flags, iso-3166-1, sql, multilingual, json, csv, xml
Last push: 2026-07-22T21:12:12+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 55, longevity 100
- inputs: {"age_days": 3871, "days_push": 42, "days_rel": 301, "gap_med": 30, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1592, forks 389 (observed 2026-08-28T04:05:08.720566+00:00)

## What it is
A constantly updated dataset of world countries, territories, and their ISO 3166-1 alpha-2, alpha-3, and numeric codes, plus ISO 3166-2 subdivision codes, available in CSV, JSON, PHP, MySQL, MSSQL, and XML formats in multiple languages with national flags. It is maintained as a static data repository rather than a software library.

## Use cases
- get a list of countries with ISO codes for a dropdown
- populate a database table of countries and states
- find country names in multiple languages
- download country flags by ISO code
- get ISO 3166-2 codes for provinces and states
- seed a MySQL database with country data

## When to choose
- you need ready-made, regularly updated country/subdivision data in common formats
- you need multilingual country names or flag images
- you want SQL dumps to seed a database

## When to avoid
- you need a runtime API or library to query countries programmatically
- you need geolocation, coordinates, or demographic data beyond ISO codes

## Facets
- artifact type: dataset
- maturity: active
- function: data-generation, internationalization
- domain: developer-tools, apis
- platform: cross-platform
- tags: iso-3166, country-codes, flags, multilingual, csv, sql, xml, reference-data, localization

## Member repositories
- stefangabos/world_countries (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:08.720566+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:54:41.733242+00:00, confidence not recorded.
  - readme: https://github.com/stefangabos/world_countries (fetched 2026-08-28T04:05:08.720566+00:00, sha ebece21c0cd5)
  - homepage: http://stefangabos.github.io/world_countries/ (fetched 2026-08-29T11:25:11.929061+00:00, sha 2aa9f439d34f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
