PHPackages                             diversen/intl-phone - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. diversen/intl-phone

ActiveLibrary[Localization &amp; i18n](/categories/localization)

diversen/intl-phone
===================

Get intl dial code info from country code

1.0.0(10y ago)144MITPHPPHP &gt;=5.3.0

Since Feb 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/diversen/intl-phone)[ Packagist](https://packagist.org/packages/diversen/intl-phone)[ Docs](https://github.com/diversen/intl-phone)[ RSS](/packages/diversen-intl-phone/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

intl-phone
==========

[](#intl-phone)

Get intl dial code info from country code (ISO 3166-1 alpha-2 code) See: [https://en.wikipedia.org/wiki/ISO\_3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)

Install:

```
composer require diversen/intl-phone

```

Usage:

```
include_once "vendor/autoload.php";

use \diversen\intl\phone;

$p = new phone();
$ary = $p->getCountryInformation('dk');

print_r($ary);
```

Yields:

```
Array
(
    [country_name] => DENMARK
    [dial_code] => 45
)

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23ed91d104f16d10414811ecdafbd5c80a660e658d80ccaadf84f512cfb50629?d=identicon)[diversen](/maintainers/diversen)

---

Top Contributors

[![diversen](https://avatars.githubusercontent.com/u/142675?v=4)](https://github.com/diversen "diversen (6 commits)")

---

Tags

i18nphone

### Embed Badge

![Health badge](/badges/diversen-intl-phone/health.svg)

```
[![Health](https://phpackages.com/badges/diversen-intl-phone/health.svg)](https://phpackages.com/packages/diversen-intl-phone)
```

###  Alternatives

[symfony/string

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way

1.8k759.1M1.2k](/packages/symfony-string)[symfony/intl

Provides access to the localization data of the ICU library

2.6k208.8M1.3k](/packages/symfony-intl)[gettext/gettext

PHP gettext manager

70231.8M115](/packages/gettext-gettext)[gettext/languages

gettext languages with plural rules

7532.0M12](/packages/gettext-languages)[inpsyde/multilingual-press

Simply THE multisite-based free open source plugin for your multilingual websites.

2414.0k1](/packages/inpsyde-multilingual-press)[coldtrick/translation_editor

Provide an easy way to edit translations

113.5k1](/packages/coldtrick-translation-editor)

PHPackages © 2026

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