PHPackages                             dmamontov/phone-normalizer - 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. dmamontov/phone-normalizer

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

dmamontov/phone-normalizer
==========================

Normalizer phone numbers.

1.0.1(10y ago)634.2k1BSD-3-ClausePHPPHP &gt;=5.3.3

Since Dec 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dmamontov/phone-normalizer)[ Packagist](https://packagist.org/packages/dmamontov/phone-normalizer)[ Docs](http://www.slobel.ru/)[ RSS](/packages/dmamontov-phone-normalizer/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/201e0c8767d32a5d7001ea4e336df6d96e9db2018188f43357292d82d3e619bb/68747470733a2f2f706f7365722e707567782e6f72672f646d616d6f6e746f762f70686f6e652d6e6f726d616c697a65722f762f737461626c652e737667)](https://packagist.org/packages/dmamontov/phone-normalizer)[![License](https://camo.githubusercontent.com/32414f197a27383c0e5165353c1158d76951cf86f2ddb3b7416475df202de290/68747470733a2f2f706f7365722e707567782e6f72672f646d616d6f6e746f762f70686f6e652d6e6f726d616c697a65722f6c6963656e73652e737667)](https://packagist.org/packages/dmamontov/phone-normalizer)[![Total Downloads](https://camo.githubusercontent.com/b835ec6a25b920877b4f63199100daf5f7e484b34b2904163f4cc53a96da732c/68747470733a2f2f706f7365722e707567782e6f72672f646d616d6f6e746f762f70686f6e652d6e6f726d616c697a65722f646f776e6c6f6164732e737667)](https://packagist.org/packages/dmamontov/phone-normalizer)

Phone Normalizer
================

[](#phone-normalizer)

Pars, normalizes the phone number and results in a specified format.

Requirements
------------

[](#requirements)

- PHP version &gt;=5.3.3

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

[](#installation)

1. Install [composer](https://getcomposer.org/download/)
2. Follow in the project folder:

```
composer require dmamontov/phone-normalizer ~1.0.1
```

In config `composer.json` your project will be added to the library `dmamontov/phone-normalizer`, who settled in the folder `vendor/`. In the absence of a config file or folder with vendors they will be created.

If before your project is not used `composer`, connect the startup file vendors. To do this, enter the code in the project:

```
require 'path/to/vendor/autoload.php';
```

Examples of use
---------------

[](#examples-of-use)

```
use DmitryMamontov\PhoneNormalizer\PhoneNormalizer;

$n = new PhoneNormalizer;
$n->loadCodes('vendor/dmamontov/phone-normalizer/codes/codes.json');

$phone = $n->normalize('XXXXXXXXXXXXXX');
var_dump($phone->format('+#CC#(#c#)###-##-##'));
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~0 days

Total

2

Last Release

3851d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5955726?v=4)[Dmitry Mamontov](/maintainers/dmamontov)[@dmamontov](https://github.com/dmamontov)

---

Top Contributors

[![dmamontov](https://avatars.githubusercontent.com/u/5955726?v=4)](https://github.com/dmamontov "dmamontov (7 commits)")[![1on](https://avatars.githubusercontent.com/u/2292168?v=4)](https://github.com/1on "1on (1 commits)")

---

Tags

normalizephoneformatnumber

### Embed Badge

![Health badge](/badges/dmamontov-phone-normalizer/health.svg)

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

###  Alternatives

[willdurand/negotiation

Content Negotiation tools for PHP provided as a standalone library.

1.4k126.6M193](/packages/willdurand-negotiation)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k40.0M2.6k](/packages/ergebnis-composer-normalize)[hallindavid/manny

a package of manipulators that hopefully come in useful for those of us who always forget regex when we need it (manny is short for manipulation)

37106.7k3](/packages/hallindavid-manny)[rynpsc/craft-phone-number

International phone number field.

2267.4k](/packages/rynpsc-craft-phone-number)[thunderer/numbase

Convert any number between arbitrary bases

242.3k](/packages/thunderer-numbase)

PHPackages © 2026

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