PHPackages                             kubrick/lib-e164 - 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. kubrick/lib-e164

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

kubrick/lib-e164
================

E164 Library

v1.0.0(3mo ago)027WTFPLPHPPHP &gt;=8.2

Since Jan 22Pushed 3mo agoCompare

[ Source](https://github.com/kubrrick/php-lib-e164)[ Packagist](https://packagist.org/packages/kubrick/lib-e164)[ RSS](/packages/kubrick-lib-e164/feed)WikiDiscussions main Synced 1mo ago

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

PHP Lib E164 Library
====================

[](#php-lib-e164-library)

[![Static Badge](https://camo.githubusercontent.com/dde510087fdedccd5015e5a8479400f98e40aca0a48703100f6559f81d339bca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e63652d575446504c5f322e302d6272696768747265643f7374796c653d666c6174)](https://camo.githubusercontent.com/dde510087fdedccd5015e5a8479400f98e40aca0a48703100f6559f81d339bca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e63652d575446504c5f322e302d6272696768747265643f7374796c653d666c6174)

This library allow you to create E164 numbers and interact with them

1. E164 number
--------------

[](#1-e164-number)

Create a French phone number

```
use Kubrick\E164\Number\E164FRNumber;

include 'vendor/autoload.php';

$short = new E164FRNumber('388809568'); // 9 digit french number
$local = new E164FRNumber('0388809568'); // 10 digits
$int   = new E164FRNumber('0033388809568'); // international
$e164  = new E164FRNumber('+33388809568'); // E164
```

2. Factory
----------

[](#2-factory)

As we just created a French phone number we have to use a French factory to get next numbers

```
use Kubrick\E164\Factory\FranceNumberFactory;
use Kubrick\E164\Number\E164FRNumber;

$numbers = FranceNumberFactory::nextNumber(new E164FRNumber("533290001"), 4); Request the 4 next numbers
```

We also can retrieve missing numbers

```
$numbers[] = new E164FRNumber("350000001");
$numbers[] = new E164FRNumber("350000009");
$numbers[] = new E164FRNumber("350000002");

// Will create missings numbers between the lower and the higher given (given are excluded)
$newNumbers = FranceNumberFactory::missingNumbers($numbers, 5);
dd($newNumbers);
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance78

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

116d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37eb5b59cf3b835c6831d43dae573a588380d6da545dd281a3cc8f010cba8179?d=identicon)[kubrrick](/maintainers/kubrrick)

---

Top Contributors

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

---

Tags

telephonyE164

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kubrick-lib-e164/health.svg)

```
[![Health](https://phpackages.com/badges/kubrick-lib-e164/health.svg)](https://phpackages.com/packages/kubrick-lib-e164)
```

###  Alternatives

[marcelog/pami

Asterisk Manager Interface (AMI) client for PHP, event driven, object oriented

415750.6k1](/packages/marcelog-pami)[chan-sccp/pami

Asterisk Manager Interface (AMI) client for PHP, event driven, object oriented (Fork)

2952.3k](/packages/chan-sccp-pami)

PHPackages © 2026

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