PHPackages                             mcdanci/iso3166 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mcdanci/iso3166

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mcdanci/iso3166
===============

A library providing ISO 3166-1 data of country &amp; nationality

09PHP

Since May 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mcdanci/iso3166-nationality)[ Packagist](https://packagist.org/packages/mcdanci/iso3166)[ RSS](/packages/mcdanci-iso3166/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ISO 3166-1 Data Library with Nationality Extension
==================================================

[](#iso-3166-1-data-library-with-nationality-extension)

A library providing ISO 3166-1 data of country &amp; nationality.

ISO 3166-1 country codes &amp; nationalities listing in the following formats:

- CSV
- JSON
- MySQL
- PHP (as array)

Using
-----

[](#using)

See `samples` for reference.

The `src/gen` folder contains a PHP file that generates the various output files from the main data file `src/gen/master-list.csv`.

Source
------

[](#source)

Data is taken from:

- By [Wikipedia](https://www.wikipedia.org/) licensed under \[CC BY-SA 3.0 Unported License\]
    - [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) ([https://en.wikipedia.org/wiki/Wikipedia:Text\_of\_Creative\_Commons\_Attribution-ShareAlike\_3.0\_Unported\_License](https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License))
    - [List of adjectival and demonymic forms for countries and nations](https://en.wikipedia.org/wiki/List_of_adjectival_and_demonymic_forms_for_countries_and_nations)
- [ISO](https://www.iso.org/)

Support
-------

[](#support)

### Donation

[](#donation)

- [![Alipay lucky tip QR code](https://camo.githubusercontent.com/1e019ba7bb3febb4f5646202fa569061177193dcaf25a3adf67a59634d492189/687474703a2f2f746f6f6c2e6f736368696e612e6e65742f616374696f6e2f7172636f64652f67656e65726174653f646174613d687474707325334125324625324671722e616c697061792e636f6d25324663317830383336396165706277386c6b306c7a35733638266572726f723d51266d617267696e3d302673697a653d34)](http://lwurl.to/cHdIp "Alipay lucky tip")

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf8a219ffd7ef0bfb72b0b6255aa22f2bfed868167e77f83d9dfc4c9fb4fa8dd?d=identicon)[mcdanci](/maintainers/mcdanci)

---

Top Contributors

[![Dinuks](https://avatars.githubusercontent.com/u/17206?v=4)](https://github.com/Dinuks "Dinuks (2 commits)")

### Embed Badge

![Health badge](/badges/mcdanci-iso3166/health.svg)

```
[![Health](https://phpackages.com/badges/mcdanci-iso3166/health.svg)](https://phpackages.com/packages/mcdanci-iso3166)
```

###  Alternatives

[codenco-dev/nova-grid-system

A Laravel Nova tool to have a grid system

80300.1k](/packages/codenco-dev-nova-grid-system)[mageplaza/module-share-cart

Magento 2 Share Cart extension

12182.8k2](/packages/mageplaza-module-share-cart)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
