PHPackages                             aminkhoshzahmat/country-code - 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. aminkhoshzahmat/country-code

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

aminkhoshzahmat/country-code
============================

A list of all countries with phone, code, and their names

v1.1.0(3y ago)7301MITPHPPHP &gt;=8.1

Since Feb 8Pushed 3y ago2 watchersCompare

[ Source](https://github.com/aminkhoshzahmat/country-code)[ Packagist](https://packagist.org/packages/aminkhoshzahmat/country-code)[ RSS](/packages/aminkhoshzahmat-country-code/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

country-code
============

[](#country-code)

A list of all countries with phone, code, and their names

### Install

[](#install)

```
composer require aminkhoshzahmat/country-code
```

### Usage

[](#usage)

```
CountryType::IRAN->getCode();   // "IR"
CountryType::IRAN->getNumber(); // "98"
CountryType::IRAN->getName();   // "Iran"
CountryType::IRAN->getCities(); // ["Tehran", "Tabriz", ...]
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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.

###  Release Activity

Cadence

Every ~9 days

Total

3

Last Release

1169d ago

### Community

Maintainers

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

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

---

Top Contributors

[![aminkhoshzahmat](https://avatars.githubusercontent.com/u/5352844?v=4)](https://github.com/aminkhoshzahmat "aminkhoshzahmat (4 commits)")[![mortezakarimi](https://avatars.githubusercontent.com/u/4004087?v=4)](https://github.com/mortezakarimi "mortezakarimi (2 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/aminkhoshzahmat-country-code/health.svg)

```
[![Health](https://phpackages.com/badges/aminkhoshzahmat-country-code/health.svg)](https://phpackages.com/packages/aminkhoshzahmat-country-code)
```

PHPackages © 2026

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