PHPackages                             zenapply/php-telephone - 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. zenapply/php-telephone

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

zenapply/php-telephone
======================

This package aims at providing an easy to use telephone data-type class

1.0.1(10y ago)37.0kMITPHPPHP ^5.5.9|^7.0

Since May 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/leadthread/php-telephone)[ Packagist](https://packagist.org/packages/zenapply/php-telephone)[ Docs](https://github.com/zenapply/php-telephone)[ RSS](/packages/zenapply-php-telephone/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

php-telephone
=============

[](#php-telephone)

[![Latest Version](https://camo.githubusercontent.com/2f87005c5eca167680e933fd226fadb651b82c49dcefba9b9fa3b8937787b2f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7a656e6170706c792f7068702d74656c6570686f6e652e7376673f7374796c653d666c61742d737175617265)](https://github.com/zenapply/php-telephone/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/d2b253c70bd7ec9911c138f2dd2c3e7ec14dba75e886297c17eec24670b8ee9f/68747470733a2f2f7472617669732d63692e6f72672f7a656e6170706c792f7068702d74656c6570686f6e652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/zenapply/php-telephone)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a59324d27007e525c54cf02aae97e8a86cead0ce96605cd10fe169faddb0c295/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a656e6170706c792f7068702d74656c6570686f6e652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/zenapply/php-telephone/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/c0886d585bcc623e45d1704a90c24b464965d58826825fa942f419e6bdf7ee4e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a656e6170706c792f7068702d74656c6570686f6e652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/zenapply/php-telephone/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/1c4ac926efb90f2924bb989040a5bf7eedb5476ed59563195a7d1ed8141ed7fb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536663332353263333536333065303032396462303138372f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56f3252c35630e0029db0187)[![Total Downloads](https://camo.githubusercontent.com/559c74b76f12e6a6d8f697112fd9925a4aaa7003a325ac6d1b798b508fcaf272/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a656e6170706c792f7068702d74656c6570686f6e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zenapply/php-telephone)

This package aims at providing an easy to use telephone data-type class.

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

[](#installation)

Install via [composer](https://getcomposer.org/) - In the terminal:

```
composer require zenapply/php-telephone
```

Usage
-----

[](#usage)

```
use Zenapply\DataTypes\Telephone;

$phone = new Telephone('+1 (230) 555-3333', 'US'); // The second parameter (region) is optional and defaults to 'US'.

echo $phone . PHP_EOL;                      // +12305553333
echo $phone->getE164() . PHP_EOL;           // +12305553333
echo $phone->getRFC3966() . PHP_EOL;        // tel:+1-230-555-3333
echo $phone->getNational() . PHP_EOL;       // (230) 555-3333
echo $phone->getInternational() . PHP_EOL;  // +1 230-555-3333
echo $phone->getOriginal() . PHP_EOL;       // +1 (230) 555-3333
echo $phone->getAreaCode() . PHP_EOL;       // 230
echo $phone->getCountryCode() . PHP_EOL;    // 1
echo $phone->getSubscriberCode() . PHP_EOL; // 5553333
echo $phone->isValid() . PHP_EOL;           // true
```

Contributing
------------

[](#contributing)

Contributions are always welcome!

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

3698d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d0f17a08e8038aafdd451317206dda9429dfda2c7cbadb0c0796e25367108d5?d=identicon)[tylercd100](/maintainers/tylercd100)

---

Top Contributors

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

---

Tags

telephonetylercd100zenapply

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zenapply-php-telephone/health.svg)

```
[![Health](https://phpackages.com/badges/zenapply-php-telephone/health.svg)](https://phpackages.com/packages/zenapply-php-telephone)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k59](/packages/verbb-formie)[fleetbase/fleetops-api

Fleet &amp; Transport Management Extension for Fleetbase

1731.5k7](/packages/fleetbase-fleetops-api)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10244.2k5](/packages/bitrix24-b24phpsdk)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k19](/packages/fleetbase-core-api)[tylercd100/laravel-placeholders

Find and replace placeholders in a string

1216.0k](/packages/tylercd100-laravel-placeholders)

PHPackages © 2026

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