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

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

evidenze/country-code
=====================

An international telephone country code generator

16PHP

Since Feb 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/evidenze/country-code)[ Packagist](https://packagist.org/packages/evidenze/country-code)[ RSS](/packages/evidenze-country-code/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#country-code)

[![Build Status](https://camo.githubusercontent.com/46a965ca4df4c91451a6e8bb3d91acd21a022f47186b1f62ecfea8cd3186d5f7/68747470733a2f2f7472617669732d63692e6f72672f65766964656e7a652f636f756e7472792d636f64652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/evidenze/country-code)

Installation
------------

[](#installation)

```
composer require evidenze/country-code

```

Usage
-----

[](#usage)

```
use Evidenze\CountryCode;

/**
* The code below will return +234
* Replace NIGERIA with any other country in Africa to get the country code
*/
$nigeria = CountryCode::NIGERIA;
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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://avatars.githubusercontent.com/u/14982136?v=4)[Essien Ekanem](/maintainers/evidenze)[@evidenze](https://github.com/evidenze)

---

Top Contributors

[![evidenze](https://avatars.githubusercontent.com/u/14982136?v=4)](https://github.com/evidenze "evidenze (24 commits)")

### Embed Badge

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

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

###  Alternatives

[projectcleverweb/color

This is a stand-alone PHP 7 (and PHP 5!) library for working with RGB, HSL, HSB/HSV, Hexadecimal, and CMYK colors. Create schemes, modify specific color properties, easily convert between color spaces, create gradients, and make color suggestions quickly and easily.

23968.6k](/packages/projectcleverweb-color)

PHPackages © 2026

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