PHPackages                             revolution/calling - 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. revolution/calling

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

revolution/calling
==================

telephone number

0.1.1(8y ago)0246MITPHPPHP ^5.6.4 || ^7.0

Since Aug 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kawax/calling)[ Packagist](https://packagist.org/packages/revolution/calling)[ RSS](/packages/revolution-calling/feed)WikiDiscussions master Synced 3w ago

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

電話番号からエリアを判定
============

[](#電話番号からエリアを判定)

Install
-------

[](#install)

### Composer

[](#composer)

```
composer require revolution/calling

```

### Laravel

[](#laravel)

```
Revolution\Calling\Providers\CallingServiceProvider::class,
```

```
'Calling' => Revolution\Calling\Facades\Calling::class,
```

使い方
---

[](#使い方)

```
use Revolution\Calling\Calling;

$calling = new Calling();

$area = $calling->area('09000000000');

//"携帯電話・PHS"
```

### 自分で用意した市外局番データを使う

[](#自分で用意した市外局番データを使う)

```
use Revolution\Calling\Calling;

$calling = new Calling();

//一部入れ替え
$data = $calling->getNumber();
$data['0120'] = 'フリーダイヤル';

//全部なら配列で用意
$data = [];

$calling->setNumber($data);

$area = $calling->area('01200000');
//"フリーダイヤル"
```

### Laravel

[](#laravel-1)

```
use Calling;

$area = Calling::area('090000');
```

市外局番データ
-------

[](#市外局番データ)

- [http://www.soumu.go.jp/main\_sosiki/joho\_tsusin/top/tel\_number/shigai\_list.html](http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/shigai_list.html) からWORD版ファイルをダウンロード。
- コピペしたり変換したりしてnumber.csvを用意。

```
php data/convert.php

```

でnumber.jsonが作られる。

LICENSE
-------

[](#license)

MIT
Copyright kawax

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~357 days

Total

2

Last Release

3246d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77618633?v=4)[Revolution](/maintainers/revolution)[@Revolution](https://github.com/Revolution)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/revolution-calling/health.svg)

```
[![Health](https://phpackages.com/badges/revolution-calling/health.svg)](https://phpackages.com/packages/revolution-calling)
```

###  Alternatives

[nette/component-model

⚛ Nette Component Model

28716.8M101](/packages/nette-component-model)[sparors/laravel-ussd

Create ussd with ease

6332.9k](/packages/sparors-laravel-ussd)[overtrue/laravel-options

Global options module for Laravel application.

5218.6k3](/packages/overtrue-laravel-options)[mixnode/mixnode-warcreader-php

Read Web ARChive (WARC) files in PHP.

224.1k1](/packages/mixnode-mixnode-warcreader-php)[oomphinc/drupal-scaffold

A Drupal scaffold project

192.7k](/packages/oomphinc-drupal-scaffold)

PHPackages © 2026

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