PHPackages                             gupalo/ru-phone-parser - 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. gupalo/ru-phone-parser

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

gupalo/ru-phone-parser
======================

Russia Phone Parser

1.0.1(5y ago)0543MITPHPPHP &gt;=7.4

Since Aug 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gupalo/ru-phone-parser)[ Packagist](https://packagist.org/packages/gupalo/ru-phone-parser)[ RSS](/packages/gupalo-ru-phone-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Russia Phone Parser
===================

[](#russia-phone-parser)

Detect region and phone type by phone number.

Install
-------

[](#install)

```
composer require gupalo/ru-phone-parser

```

Use
---

[](#use)

```
$phone = RuPhone::create('3013042350');
print_r([
    'source' => $phone->getSource(), // '+7(301)304-23-50',
    'number' => $phone->getNumber(), // '3013042350',
    'code' => $phone->getCode(), // 301,
    'range_begin' => $phone->getRangeBegin(), // 3042300,
    'range_end' => $phone->getRangeEnd(), // 3042399,
    'capacity' => $phone->getCapacity(), // 100,
    'operator' => $phone->getOperator(), // 'ПАО "Ростелеком"',
    'city' => $phone->getCity(), // 'г. Северобайкальск',
    'region' => $phone->getRegion(), // 'Республика Бурятия',
]);
print_r($phone->jsonSerialize()); // same

```

Invalid and not found phones throw Exceptions. See `tests`.

Links
-----

[](#links)

- `data` files: (last updated 2020-08-17)
-

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~0 days

Total

2

Last Release

2078d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gupalo-ru-phone-parser/health.svg)

```
[![Health](https://phpackages.com/badges/gupalo-ru-phone-parser/health.svg)](https://phpackages.com/packages/gupalo-ru-phone-parser)
```

###  Alternatives

[butschster/meta-tags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project

628730.7k2](/packages/butschster-meta-tags)

PHPackages © 2026

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